Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Searching/sorting content

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

Page: 1
Go to End
Author Topic: 921 Views
  • DanStephenson
    Community Member
    115 Posts

    Searching/sorting content Link to this post

    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?

  • Nivanka
    Community Member
    395 Posts

    Re: Searching/sorting content Link to this post

    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.

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.