Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author xnau webdesign

    (@xnau)

    Thanks for pointing this out. I noticed that the sort dropdown is now including all the fields shown in the list…it should only include those fields that are shown in the list and have “sortable” checked. That is what it was doing in 1.4.9.3 so that needs to be fixed.

    The only way to include fields for searching that aren’t displayed in the list is to specify those fields in a custom template. In the pdb-list-detailed.php template, there is a function which sets up the fields for searching. In that function, you can specify which fields are shown in the search dropdown like this:

    $this->column_selector( false, true, array('last_name','first_name','city'), 'column');

    In that case, the search dropdown will include the last_name, first_name, and city fields.

    This is explained in the template to help you get that set up.

    Thread Starter bw3em

    (@bw3em)

    Thanks, I’ve added that and they’re now showing up in the search drop down menu, BUT they don’t work ??

    Want me to email you an example link?

    Em

    Thread Starter bw3em

    (@bw3em)

    Also, is there any way to change the default search options in the admin area? I want it to be ‘contain’ rather than ‘is’ ….like it used to be ??

    Plugin Author xnau webdesign

    (@xnau)

    Hmm, I think you better send me a link….

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search/sortable fields’ is closed to new replies.