MODx TV for setting page visibility for robots


/ Published in: HTML
Save to your folder(s)

Create a new TV (under elements tab) called "Robots" and past the following into the input field. Then apply it to all the templates of the pages you wish to see this TV option.
Set default to:
Set delimiter to: ||
Add the TV to the template header as [[*robots]] (v2+) or [*robots*] (v1 or less).

There's probably a more eloquent way of scripting with a snippet using instead the default MODx template variables of "Cacheable" and "Searchable"!

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.