Project

General

Profile

Actions

Bug #86025

closed

page.meta.robots is no longer assignable via TypoScript since sysext:seo

Added by Benjamin Robinson about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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]

Actions #1

Updated by Richard Haeser about 6 years ago

  • Assignee set to Richard Haeser
Actions #2

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 #3

Updated by Benjamin Robinson about 6 years ago

Thank you very much!!

Actions

Also available in: Atom PDF