ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

orderby in advanced search

March 31, 2011 3:22pm

Subscribe [4]
  • #1 / Mar 31, 2011 3:22pm

    femero

    4 posts

    Hi, is it possible to order results using the advanced search form using any custom field from the channel?
    I’ve checked the docs and it oly appears to give these options:

    <select name=“orderby”>
      <option value=“date” >{lang:date}</option>
      <option value=“title” >{lang:title}</option>
      <option value=“most_comments” >{lang:most_comments}</option>
      <option value=“recent_comment” >{lang:recent_comment}</option>
    </select>

    I’ve tried to use something like this with no results:

    <option value=”{custom_field}”>{custom field}<option>

    Thanks in advance.

  • #2 / Apr 01, 2011 12:35am

    John Henry Donovan

    12339 posts

    nosgnl,

    I don’t believe so unfortunately. You are welcome to make a feature request or there are third party add-ons available which may help

  • #3 / Apr 01, 2011 6:47am

    Mark Bowen

    12637 posts

    There is also a hack in the Wiki although it’s for 1.x so you may or may not have a good run with it if you decided to go that route.

    Search By Custom Field

    Myself I would personally recommend using Super Search from Solspace as that will let you do this and oh so much more.

    Best wishes,

    Mark

  • #4 / Apr 04, 2011 8:08am

    Sue Crocker

    26054 posts

    Thanks for the assist, Mark.

    nosgnl = does the information from John and Mark help?

  • #5 / Apr 04, 2011 8:33am

    femero

    4 posts

    Sure!!! Thanks a lot for helping me.

    I’ll go for the hack since I’m quite in hurry and I neeed to solve this problem right now. But seems like the super search module is the way to go in order to solve this propperly, I’ll give it a try when I have time.

    Thank you very much

  • #6 / Apr 05, 2011 8:20am

    Sue Crocker

    26054 posts

    Sounds great! Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases