While it is possible to configure meta robots for the page generated for a specific tag, there currently is no way set a default value for meta robots for content generated by com_tags other than the site-global defaults.
For SEO purposes this would be badly needed, as content generated by com_tags usually should be marked "noindex, follow" to avoid duplicate content.
Request for enhancement: Provide a configuration option to set meta robots for com_tags generated content.
Tested with Joomla 3.3.6
Labels |
Removed:
?
|
Labels |
Added:
?
|
I just did, but I cannot find such a config option on 3.4.1 either.
There are the site-global settings and the settings for a specific tag. But there is no way to configure meta robots for all com_tags generated content.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-04-09 11:55:10 |
Status | Closed | ⇒ | New |
Ok sorry i have missunderstand you
There are the site-global settings and the settings for a specific tag. But there is no way to configure meta robots for all com_tags generated content.
Hmm i just check we dont hat similiar for com_content have we? I have not see it.
Build | 3.3.6 | ⇒ | 3.4.1 |
Category | ⇒ | Feature Request |
Category | Feature Request | ⇒ | Feature Request Tags |
Since com_content is more or less the "main thing" of the whole system, I'd consider the site-global defaults sufficient in this case. Also it can be configured for content attached to a menu item on the menu item level.
But feel free to add such a config option on com_content level as well ;-)
Status | New | ⇒ | Confirmed |
Thanks now i understand. Moving to Confirmed.
At the moment I recommend to use
JFactory::getDocument()->setMetadata('robots', 'noindex, nofollow');
in template overrides if you want to make sure that robots meta tag is set like you want.
Why? Try this:
Expected:
<meta name="robots" content="noindex,follow" />
Actual:
No robots meta tag at all.
This is a bug, incomplete code in view.html.php..
if you use menu items, single tag views inherit robots from menu settings. No chance to override them via tag settings. This is different from bahavior of com_content article. There the setting in article itself always rules.
Because I found another issue concerning author meta tags in com_tags I started a PR to fix it and will also fix the robots thing described above.
Afterwards you can take over @Ptacku to find friends for your idea ;-)
Currently I've implemented what I need by a simple onContentPrepare plugin, which merely checks if it is called in com_tags context and then calls JFactory::getDocument()->setMetadata() as described above.
This works fine for me and I can live with that. Still it would be nice if Joomla could do this out-of-the-box one day.
Thank you for your contribution but it has been decided that this is not something that will be changed in the core of Joomla.
Status | Confirmed | ⇒ | Closed |
Closed_Date | 2015-04-09 11:55:10 | ⇒ | 2016-05-08 15:41:41 |
Closed_By | ⇒ | brianteeman |
@spacemonkey
Please try 3.4.1 we have fix a lot of bugs since 3.3.6.
http://www.joomla.org/announcements/release-news/5587-joomla-3-4-1-released.html