Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Pulling RSS feeds from other sites onto my home page.


Go to End


31 Posts   8499 Views

Avatar
zim

Community Member, 135 Posts

29 October 2009 at 6:48am

I have been looking through the forum trying to establish if this can be done.

I would like to have a section on the home page of my site that pulls in one story from each of say BBC news, Guardian news, Yahoo news etc.

Can this be done?

Can anyone point me in right direction?

Avatar
dhensby

Community Member, 253 Posts

29 October 2009 at 7:35am

Avatar
Brad

Community Member, 8 Posts

29 October 2009 at 9:05pm

hi, I've used the Google ajax feed API with good effect, although not in a silverstripe implementation. However it should work anywhere.

http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm

http://code.google.com/apis/ajaxfeeds/documentation/

Avatar
zim

Community Member, 135 Posts

29 October 2009 at 10:21pm

thanks for responses. I will have a look at these today and let you know,

Avatar
Mo

Community Member, 541 Posts

30 October 2009 at 4:34am

I have done this using the SimplePie class, bundled in the sapphire/thirdparty/ folder.

I used it in my Dashboard module: http://www.silverstripe.org/all-other-modules/show/269666#post269666

It is also used in the blog module I beleive. If you picked the code appart, you sould be able to pick out the method you need.

Mo

Avatar
zim

Community Member, 135 Posts

30 October 2009 at 4:40am

Cool, i will have a look ... it will have to be tomorrow evening as here at work I am doing silverstripe project but on a laptop that is not on internet...long story. but I will defo get back to you guys on this as soon as I get something working. Thanks for advice

Avatar
zim

Community Member, 135 Posts

30 October 2009 at 12:17pm

can i use this on my local silverstripe project?

have not got a domain for it yet soo can't put in to get API KEY

Avatar
zim

Community Member, 135 Posts

30 October 2009 at 12:23pm

i get this error with the RestfulService method

"Fatal error: Call to undefined function curl_init() in C:\wamp\www\SilverStripe01\sapphire\api\RestfulService.php on line 96"

any idea why?

Go to Top