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.

Widgets

Discuss SilverStripe Widgets.

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

TwitterWidgetPack


Reply

7 Posts   1424 Views

Avatar
dacar

10 November 2010 at 12:54am Community Member, 168 Posts

Hi,

does anybody know how to set the sort order for the displayed tweets to Date DESC? I have already searched google and the twitter api but did not find a hint.

new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 6000,
width: 250,
height: 300,
theme: {
shell: {
background: '#333333',
color: '#ffffff'
},
tweets: {
background: '#000000',
color: '#ffffff',
links: '#4aed05'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'all'}}).render().setUser('usernameHere').start();

Greetings, Carsten.

Avatar
MjamTaart!

27 November 2010 at 2:28am Community Member, 5 Posts

I subsribe, cause I also like to know. :)

Strange thing is, if you look at the example on the Twitter website, the order is in reverse.

Avatar
dacar

27 November 2010 at 2:45am Community Member, 168 Posts

Hi Mjam,

even on Hamish's website it is sorted the other way round. I have send him an email a few days ago, but still no response. I will share, if i get an answer.

Avatar
borriej

19 February 2011 at 1:57am Community Member, 267 Posts

up! how do you reverse the twitter module? so the latest tweet on top?

Avatar
Hamish

21 February 2011 at 8:15am Community Member, 712 Posts

I don't believe it can be sorted - the JavaScript API that powers the widget is supplied by Twitter (see [url]http://twitter.com/about/resources/widgets/[/url]). As far as I know there is no explicit ordering option, although there could be some undocumented behaviour I'm not aware of.

Avatar
borriej

21 February 2011 at 8:32am Community Member, 267 Posts

Im very curious how other people are dealing with this issue!

Avatar
biapar

28 February 2011 at 6:43am Forum Moderator, 435 Posts

Where is this mod?