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.

search:field="value" parameter returns everything

October 12, 2011 10:25am

Subscribe [3]
  • #1 / Oct 12, 2011 10:25am

    TomT

    49 posts

    I created a template to filter on a certain value and have the channel:entries tag set up as follows for testing purposes…

    {exp:channel:entries channel="news" limit="10" dynamic="no" orderby="entry_date" paginate="both" search:title="Steve Jobs"}
    {if no_results}{coming_soon}{/if}    
    {articles_listing_details}
    {/exp:channel:entries}

    ...however as you can see from the link below, it returns everything.

    What am I doing wrong?

    Thanks.

    http://www.findyourgeek.com/articles/nycc-2011/

  • #2 / Oct 12, 2011 12:32pm

    Design by Front

    106 posts

    Frustratingly, the “title” field appears to be exempt from the search parameter in {exp:channel:entries}. According to the docs you can only use the search parameter if you are searching a custom field in the entry (e.g a Text Input, Textarea or Drop-down List field)

    Hope this helps,
    Chuck

  • #3 / Oct 12, 2011 12:36pm

    TomT

    49 posts

    Thanks, that does help.

    Doesn’t work when I set it to body either but since I need to filter on title, it looks like this parameter isn’t going to work for me.

    However, this plug-in works splendidly (once you correct the syntax error, see the forum for the plug-in):

    http://devot-ee.com/add-ons/search-fields

  • #4 / Oct 12, 2011 12:42pm

    Design by Front

    106 posts

    Thanks, that does help.

    Doesn’t work when I set it to body either but since I need to filter on title, it looks like this parameter isn’t going to work for me.

    However, this plug-in works splendidly (once you correct the syntax error, see the forum for the plug-in):

    http://devot-ee.com/add-ons/search-fields

    Excellent, i’ll definitely have a look at that plug-in, can think of a million times when it would’ve been useful!

    Cheers

  • #5 / Oct 12, 2011 4:12pm

    Kevin Smith

    4784 posts

    Thanks for helping out, Chuck! Tom, is there anything else I can help you with?

  • #6 / Oct 12, 2011 4:15pm

    TomT

    49 posts

    That’s it Kevin, thanks!

  • #7 / Oct 12, 2011 4:16pm

    Kevin Smith

    4784 posts

    Great! Feel free to return the next time you need some help!

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

ExpressionEngine News!

#eecms, #events, #releases