noindex_ttl

Max age (in seconds) of dynamic content before it receives a “noindex” meta tag to remove from search engines in LiveWhale 2.21+ (default: false)

Accepted values: integer (seconds)

Context: Front-end (client/public.config.php)

A “noindex” robots meta tag will tell search engines not to index the current page, or to remove it from their index if re-crawling the URL.

<meta name="robots" content="noindex" />

Since LiveWhale 2.21.0, you can customize a noindex_ttl setting for each dated dynamic content type so they automatically receive this “noindex” meta tag after a certain amount of time.

For instance, to add “noindex” to events older than 30 days, uncomment and edit the following in public.config.php:

$_LW->REGISTERED_WIDGETS['events']['custom']['noindex_ttl']=2592000; // max age (in seconds) of item before detail view receives noindex metatag

In LiveWhale CMS, you can also configure noindex_ttl for blurbs, forms, galleries, and news stories:

$_LW->REGISTERED_WIDGETS['blurbs']['custom']['noindex_ttl']=false; // max age (in seconds) of item before detail view receives noindex metatag
$_LW->REGISTERED_WIDGETS['forms']['custom']['noindex_ttl']=false; // max age (in seconds) of item before detail view receives noindex metatag
$_LW->REGISTERED_WIDGETS['galleries']['custom']['noindex_ttl']=false; // max age (in seconds) of item before detail view receives noindex metatag
$_LW->REGISTERED_WIDGETS['news']['custom']['noindex_ttl']=false; // max age (in seconds) of item before detail view receives noindex metatag