Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Sorting by Created field

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 867 Views
  • Lou
    Avatar
    Community Member
    8 Posts

    Sorting by Created field Link to this post

    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?

  • Lou
    Avatar
    Community Member
    8 Posts

    Re: Sorting by Created field Link to this post

    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.

  • UncleCheese
    Avatar
    4085 Posts

    Re: Sorting by Created field Link to this post

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

  • Lou
    Avatar
    Community Member
    8 Posts

    Re: Sorting by Created field Link to this post

    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.

    867 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.