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.

All other Modules /

Discuss all other Modules here.

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

Twitter Feed Widget ?


Reply


4 Posts   1926 Views

Avatar
Ben_W

Community Member, 80 Posts

23 October 2009 at 2:06pm

Edited: 23/10/2009 2:12pm

I have just tried out the Twitter Module, it does what it says, however, I am looking for a widget which I can drop into a set of pages, not to create a separate page. The other Twitter Widget seems to be a add-on of the blog module, I might be wrong.

could anyone point me to the right direction please? If say I need implement twitter php api library, how do I construct the twitter feed into silverstripe dataobject, so that I can separate the logic away from the template(.ss pages)

Format of the feed:

RT @WebBasedApps Eric Schmidt on technology, innovation & the global economy http://bit.ly/46E60w
about 2 hours ago from web

RT @NASA Weather could be an issue, but we're targeting 8:20a ET for launch of a Delta II from Cape Canaveral - www.nasa.gov/ntv
about 2 hours ago from web

....

Cheers

Avatar
Willr

Forum Moderator, 5513 Posts

23 October 2009 at 2:58pm

Have alook at the blog twitter widget - even if you are not using widgets you could copy the functionality from that widget to your Page.php file (and the related html for TwitterWidget.ss to your Template file).

Avatar
banal

Community Member, 901 Posts

23 October 2009 at 6:33pm

Or you could use a jQuery based approach: http://www.webresourcesdepot.com/3-jquery-twitter-plugins-adding-tweets-to-your-website/
For my Website I'm using the coda twitter plugin (http://coda.co.za/blog/2008/10/26/jquery-plugin-for-twitter). It's really easy to setup, and if you only want it on certain pages, you could always add a boolean/checkbox to your page that will then be used to decide whether or not to include the twitter feed.

Avatar
biapar

Forum Moderator, 435 Posts

28 February 2011 at 6:58am

Where is this code in actual blog module?