This widget uses SimplePie php library to read a given feed, process it and output it on a page. Some basic css has been specified to lay the widget out in 3 columns but the intention is that it mostly dumps the html into the page ready for styling.
The widget loads the feed in with Ajax so as not to hold up other page loading activities.
Tested on Yii 1.1.11
Copy the files into the extensions directory
In your main site config (main.php) file you must add an entry in controllerMap
'controllerMap'=>array( 'YiiFeedWidget' => 'ext.yii-feed-widget.YiiFeedWidgetController' ),
eg.
<!-- Feed widget --> <?php $this->widget( 'ext.yii-feed-widget.YiiFeedWidget', array('url'=>'http://www.mysite.com/feed','limit'=>3) );
Uses SimplePie php library for feed processing http://simplepie.org/
SimplePie depends on IDNA Convert (idna_convert.class.php) http://www.phpclasses.org/browse/file/5845.html
Total 8 comments
Would be nice if it does not exist to page the blog results
I am also stuck on the spinner, and the permissions on relevant directories are fine.
I have added the controllerMap configuration, but the hidden fields in the view linking to YiiFeedWidget/getFeed return 404. The code looks fine on first glance. Any ideas on where else to look?
I have the same issues with this feed http://www.nasa.gov/rss/
FIXED
cache dir was not writable.
@144key Are you using version 1.01? If you are using 1.0 you could have case issues depending on what platform you are on. Also, are you certain the RSS feed you are parsing works properly and validates in an RSS validator?
@alanselvam Thanks for the feedback. Sorry, I don't have time to extend the plugin in the way you request at the moment.
I've follow all instructions and when loaded, its always loading (there is loader icon/gif showed) and rss content not shown.
Anyone can solve this problem ?
Thanks before :)
I am new to yii. can u enhance this extension to parse RSS feed and store feed content in Database. It will really help me.
@Txomin Thanks for the feedback :)
Have been looking for something like this for a while. Much appreciated.
Leave a comment
Please login to leave your comment.