Project

General

Profile

Actions

Feature #55281

closed

Page Generator: addMetaTag - TYPO3 version

Added by Unic AG - TYPO3 almost 11 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2014-01-23
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

Hi

Since many years it is not possible to remove the following meta tag.

<meta name="generator" content="TYPO3 6.1 CMS">

It should be easy to manage it with a TS condition.

./typo3/sysext/frontend/Classes/Page/PageGenerator.php

$pageRenderer->addMetaTag('<meta name="generator" content="TYPO3 ' . TYPO3_branch . ' CMS"' . $endingSlash . '>');

For example

if (intval($GLOBALS['TSFE']->config['config']['noGeneratorTag']) == 0) {

    $pageRenderer->addMetaTag('<meta name="generator" content="TYPO3 ' . TYPO3_branch . ' CMS"' . $endingSlash . '>');
}

Tested with 6.1.5.

Actions

Also available in: Atom PDF