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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Customising the CMS /

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

Searching/sorting content

Go to End

2 Posts   1189 Views


Community Member, 116 Posts

9 April 2009 at 4:20pm

Edited: 09/04/2009 4:24pm

Hi everyone,

I have a client who wants me to be able to replicate this kind of functionality:

Can anyone tell me how this can be achieved using SS's built in search tools? I am considering using the DataObjectManager (unless someone has a better suggestion). Does DOM come with these kind of filtering/sorting functions? Anyone have a tutorial or recipe I could follow?


Community Member, 400 Posts

15 April 2009 at 3:04pm

You can use the features of the DataObject::get() method.

There you can use the SQL parameters we normally use such as WHERE, JOIN, ORDER, etc.