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.

How to stop pictures showing up in search results?

July 04, 2007 12:20pm

Subscribe [2]
  • #1 / Jul 04, 2007 12:20pm

    Riverboy

    2993 posts

    When i juse the simple search form and search it shows {body} at the result-page. Its no problem but i dont want that pictures in {body} are also shown in result page! Is there anyway to block those pictures from results?

    and second one!
    Ive used “search_in=“everywhere” but it still does not search from extended and summaries?
    Ive tried this and no results when typing text what are only at extended text!

    Thanks!
    - Tuittu

  • #2 / Jul 04, 2007 12:36pm

    silenz

    1651 posts

    CP Home ›  Admin ›  Weblog Administration ›  Field Groups ›  Custom Fields

    Check the extended and summary fields. There’s an option inside Is field searchable?. This must be set to Yes.

    There’s plugin named HTML Strip. That would strip the images (and all other HTML) from your search results. Something along the line of this:

    {exp:html_strip}{excerpt}{/exp:html_strip}
  • #3 / Jul 04, 2007 12:52pm

    Riverboy

    2993 posts

    ty very much!

    Yours:
    - Tuittu!

  • #4 / Jul 04, 2007 3:22pm

    Lisa Wess

    20502 posts

    {excerpt} already strips the HTML tags, so you can use that without the plugin. =)

  • #5 / Jul 04, 2007 4:19pm

    Riverboy

    2993 posts

    Well well well, heh. usinng excerpt instead of body solved all 😊
    Thanks hih 😊

    - Tuittu

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

ExpressionEngine News!

#eecms, #events, #releases