We’d like to have certain pages not searchable, I noticed that there is a checkbox for it in the CMS, but we are not using the MODX search. The TV can be accessed using [[*searchable]]. How do I get this information to the robots.txt file so that I can use the checkbox that exists in the CMS to manage searchable content?
Instead of placing the information in robots.txt - you can use something like:
[[*searchable:is=`1`:then=`<meta name="robots" content="all" />`:else=`<meta name="robots" content="noindex, follow">`]]
in the header of your html.
- A small step for mankind, so why not take two...
Working with web production, graphic design/workflow, photo and education - but are trying to get a life in between!