on some pages I want to have noindex and nofollow, but when I set it on the controller ,then the meta is still seeing the global setting option.
Other meta's are working fine: description, keywords, title
$document = JFactory::getDocument();
$document->setMetaData('robots', 'noindex, nofollow');
<meta name="robots" content="noindex, nofollow" />
<meta name="robots" content="index, follow" />
J3.6.2
I am not sure I understand you. I tested this by adding
$document = JFactory::getDocument();
$document->setMetaData('robots', 'noindex, nofollow');
to
components/com_content/views/article/tmpl/default.php
and the output now looks like
<meta name="author" content="Joomla" />
<meta name="robots" content="noindex, nofollow" />
<meta name="generator" content="Joomla! - Open Source Content Management" />
Ok, my bad, its was a option on a third-party plugin, closing this issue
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-08-11 19:07:49 |
Closed_By | ⇒ | 810 |
what a surprise
On 11 August 2016 at 20:08, Jelle Kok notifications@github.com wrote:
Ok, my bad, its was a option on a third-party plugin, closing this issue
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#11563 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8RscGgzXJ9PLQ5o6DDWax59c3ZU7ks5qe3MRgaJpZM4JiaG6
.
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
Labels |
Added:
?
|
ok all pages are:
even i set to other option, on the global and on the menu item