You are here

seoMetaRobotsIndex

Used by the following Containers: 
Variable Type: 
Custom Javascript
Index or NoIndex Attribute of the page
	function() {
 var seoMetaRobotsList = {{seoMetaRobots}}.split(', ');
 var seoMetaRobotsListLength = seoMetaRobotsList.length;
 var seoMetaRobotsIndex = 'index';
 var i;

 for ( i = 0; i < seoMetaRobotsListLength; i++ ) {
   if ( seoMetaRobotsList[i] == 'noindex' ) {
     seoMetaRobotsIndex = 'noindex'
   }
 }
 return seoMetaRobotsIndex;
}