Created
January 18, 2014 22:17
-
-
Save modmedia/8497539 to your computer and use it in GitHub Desktop.
Disable robots per page in Mura
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Add this to your config.xml.cfm ---> | |
<!--- Extend Page/Default. You can also choose to extend Base/Default for all objects ---> | |
<extension type="Page" subType="Default"> | |
<attributeset name="Crawling" container="default"> | |
<attribute | |
name="disableCrawling" | |
label="Disable Crawling" | |
hint="Prevent this page from being indexed by search engines" | |
type="RadioGroup" | |
required="false" | |
defaultValue="no" | |
optionList="yes^no" | |
optionLabelList="Yes^No" /> | |
</attributeset> | |
</extension> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--- Add this to your html_head.cfm ---> | |
<cfif yesNoFormat($.content('disableCrawling'))> | |
<meta name="robots" content="noindex, nofollow" /> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment