Calguy's RSS Reader template
Previous article Next articleThe CG_RSS_Reader module for CMS Made Simple™ is powered by the SimplePie RSS parser. In this article I will show you some tag examples you can use building your own template. Note, the module doesn't have an Admin page, you will find the template in the CMSMS™ Design Manager.
How to use
Item Title
Item Content
Item Link
Item Date
More information about strftime format parameters.
Item Author
Enclosure Image
<img src="{$enclosure->get_link()}" alt="{$onefeed->get_title()}" />
{/if}
Comment Form
1 Comment
I am trying to consume feed data within a custom tag in CMSMS but I a little confused on how to initialize a specific feed. Where do I pass the feed url to load the feed data into my variable? I am not able to find any documentation related to the CG_RSS_Reader. I had already a look to the SimplePie documentation, there is the function $feed->set_feed_url($url); but this isn't working for me. Or am I doing the initialization wrong? I somehow figured out that $feed = new CG_RSS_Reader(); should do the trick or better is not running on an error, as my other tries did, but I am not quite sure about that.
Thanks for any help in advance!