Actions
Bug #86025
closedpage.meta.robots is no longer assignable via TypoScript since sysext:seo
Start date:
2018-08-29
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
sysext:seo creates a robots metatag with values from the page properties, but it is not possible to set / overwrite this values via TS. In earlier versions the following was possible to set the whole developement-environment to "noindex, nofollow":
[globalString = ENV:HTTP_HOST=*dev*] page.meta.robots = noindex, nofollow [global]
Updated by Richard Haeser about 6 years ago
- Status changed from New to Closed
The TypoScript setup is checked after the extensions have set the metatags. Although it is needed that if you want to override the already set metatags, to use the replace parameter. See https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/MetaTagApi/Index.html#typoscript-and-php for more information.
In your case, your code should look like:
[globalString = ENV:HTTP_HOST=*dev*]
page.meta.robots = noindex, nofollow
page.meta.robots.replace = 1
[global]
Actions