Where's the tag that I can add to my pages that i don't want to be indexed?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
Search module prevent content how?
Search module prevent content how?
Re: Search module prevent content how?
Dunno where it's gone in your module help, but this is the tag:
Code: Select all
<!-- pageAttribute: NotSearchable -->
-
- Forum Members
- Posts: 17
- Joined: Fri Sep 30, 2011 3:05 pm
Re: Search module prevent content how?
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
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