Search module prevent content how?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
MichaelK

Search module prevent content how?

Post 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?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Search module prevent content how?

Post by Dee »

Dunno where it's gone in your module help, but this is the tag:

Code: Select all

<!-- pageAttribute: NotSearchable --> 
MichaelK

Re: Search module prevent content how?

Post by MichaelK »

Thnx man :)

It works great!  ;D
emilyshimell
Forum Members
Forum Members
Posts: 17
Joined: Fri Sep 30, 2011 3:05 pm

Re: Search module prevent content how?

Post 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
Locked

Return to “[locked] Installation, Setup and Upgrade”