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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Sorting by Created field


Go to End


4 Posts   1699 Views

Avatar
Lou

Community Member, 8 Posts

13 July 2010 at 9:41pm

Edited: 13/07/2010 10:43pm

Hi, UncleCheese.

Anyway I could make a Created header sortable?

I have this code for fields:

$tableFields = array{
	'Name'    => 'Name',
	'Title'       => 'Title',
	'Created' => 'Date Posted'
}

I can sort the table with the Name and Title fields but not the Created field... any idea?

Avatar
Lou

Community Member, 8 Posts

29 July 2010 at 1:31am

Hi, UncleCheese,

I hope you could help me with this...

It is really important that we may be able to sort the table by Created field.

Thank you.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

29 July 2010 at 1:38am

When you say you can't, what does that mean?

Avatar
Lou

Community Member, 8 Posts

29 July 2010 at 11:34pm

Edited: 29/07/2010 11:34pm

Hi!

I mean, there was not click event in the header of the table for the field(Created). While I can sort other fields by clicking their headers(i.e. ID, Title, Country), I can't do it with the Created header field.

I hope I'm making some sense.