Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mike Taylor 155 posts 353 karma points
    Aug 11, 2011 @ 10:52
    Mike Taylor
    0

    How to make back-office search for custom fields?

    I have a book catalogue site, and the book doctype has a field for ISBN number.

    I'd like editors to be able to type an ISBN number into the search box in the back-office, and have it show the matching product (to enable them to easily find a particular book to edit).

    I've added my "isbn" field to the IndexUserFields section in the InternalIndexSet in ExamineIndex.config, and I've checked with Luke, and it's indexing the "isbn" field for books.

    However, if I type an ISBN number into the search box, it doesn't return anything.

    Any ideas?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 11, 2011 @ 11:27
    Dirk De Grave
    0

    Mike,

    From looking at the source code... if you add a '*' as first char in the search criteria, follewed by the isbn, then umbraco will search in all fields! Haven't tried it tho...

     

    Cheers,

    /Dirk

  • Mike Taylor 155 posts 353 karma points
    Aug 11, 2011 @ 11:34
    Mike Taylor
    0

    Hmm. No joy, I don't think - either that, or is *desperately* slow. Is just sitting there spinning away...

    Seems like an ideal candidate for a config file to me... didn't really want to have to build a custom dashboard control...

    Thanks anyway!

    Mike

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Aug 11, 2011 @ 11:50
    Dirk De Grave
    0

    Hmm, even worse, it's throwing exceptions when trying to use wildchars... (just tried that on a live site with elmah configured) Defo not the way to go me thinks. Guess you'll need to revert to using a dashboard control.

     

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft