No search of Section Headers in Search module possible?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
dvanoss
Forum Members
Forum Members
Posts: 46
Joined: Mon Dec 18, 2006 9:21 pm

No search of Section Headers in Search module possible?

Post by dvanoss »

Is it possible to not search pages tagged as "Section Headers"? They are showing up as unusable links (just a "#") in search results and there is no place I can see to add the "" tag to prevent searching the page.
vikram31291
Forum Members
Forum Members
Posts: 21
Joined: Fri Aug 01, 2008 5:42 pm

Re: No search of Section Headers in Search module possible?

Post by vikram31291 »

you can edit the results template and make it ignore printing the cases where the $entry-> url equals "#"

ie.
  {if $entry->url == "#"}
      do nothing
  {else}
      print result
    {/if}
klenkes
Power Poster
Power Poster
Posts: 307
Joined: Mon Sep 08, 2008 9:43 am

Re: No search of Section Headers in Search module possible?

Post by klenkes »

dvanoss wrote: ...and there is no place I can see to add the "" tag to prevent searching the page.
I was faced with the same problem.
Another option is to put in the field: Extra Page Attribute 1
and then reindex the content.
Post Reply

Return to “Modules/Add-Ons”