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.

All other Modules /

Discuss all other Modules here.

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

Twitter Feed Widget ?


Go to End


4 Posts   2553 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, 5523 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
bummzack

Community Member, 904 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?