Page 1 of 1
Search module prevent content how?
Posted: Tue Sep 12, 2006 10:00 pm
by MichaelK
How do i prevent certain content from being indexed
The search module will not search any "inactive" pages. However on occasion, when you are using the CustomContent module, or other smarty logic to show different content to different groups of users, it may be advisiable to prevent the entire page from being indexed even when it is live. To do this include the following tag anywhere on the page When the search module sees this tag in the page it will not index any content for that page.
The tag can be placed in the template as well. if this is done, none of the pages attached to that template will be indexed. Those pages will be re-indexed if the tag is removed
Where's the tag that I can add to my pages that i don't want to be indexed?
Re: Search module prevent content how?
Posted: Tue Sep 12, 2006 10:52 pm
by Dee
Dunno where it's gone in your module help, but this is the tag:
Code: Select all
<!-- pageAttribute: NotSearchable -->
Re: Search module prevent content how?
Posted: Wed Sep 13, 2006 1:43 pm
by MichaelK
Thnx man
It works great!

Re: Search module prevent content how?
Posted: Wed Oct 12, 2011 4:13 pm
by emilyshimell
Hi
I am adding the search function to my site and the search works but I have a block on links at the bottom of my pages which runs through my website (in the footer template). I want to be able to stop that specific part of each page being indexed by the search else if someone searches on one of the terms which is also a link, they will get loads of unrelevant results!
Using the <!-- pageAttribute: NotSearchable --> blocks that whole page from being indexed which is not what I want. Is there a similar function that say wraps around a section of content that makes it not searchable?
Thanks
Emily