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.

Customising the CMS /

Searching/sorting content


Reply


2 Posts   959 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. [url]http://doc.silverstripe.com/doku.php?id=dataobject[/url]

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