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.

Customising the CMS /

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

Searching/sorting content


Go to End


2 Posts   1554 Views

Avatar
DanStephenson

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: http://ccaa.bz/directory.php

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?

Avatar
Nivanka

Community Member, 400 Posts

15 April 2009 at 3:04pm

You can use the features of the DataObject::get() method. http://doc.silverstripe.com/doku.php?id=dataobject

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