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

Updated by Georg Ringer almost 11 years ago

  • Status changed from New to Needs Feedback

Having this not configurable is kind of on purpose!

This tag does not harm your website, does not make it slower or more insecure!

If you really want to remove it because of speed, there are enough extensions and ways to e.g. remove all comments on the page and minimize page size for some bytes. If you really want to remove it because of any other reason, just use XCLASS.

As TYPO3 is absolutly free for you and everybody it would be really awesome if you could keep the tag.

Is that ok for you?

Actions #2

Updated by Georg Ringer almost 11 years ago

  • Status changed from Needs Feedback to Closed
Actions #3

Updated by Benjamin Robinson about 10 years ago

I tried to overwrite the meta-tag with ...

page.meta.generator = TYPO3 CMS

... and found out that this it not possible. It results in two meta-generator statements:
<meta name="generator" content="TYPO3 6.2 CMS">
<meta name="generator" content="TYPO3 CMS">

BTW it sould be "TYPO3 CMS 6.2" instead of "TYPO3 6.2 CM" if a version number is mentioned.

I agree with Georg that the TYPO3-generator Tag should be kept, but I don't see any benefit in showing the version number in the FE's HTML. It's none of the website-visitor's businness if the CMS is not up to date. Do you think i should i open a new feature-request for removing the version-number?

Actions #4

Updated by Markus Klein about 10 years ago

Yes, please open a new ticket for the version number removal. At least for a correction to "TYPO3 CMS 6.2"

Actions #5

Updated by Benjamin Robinson almost 10 years ago

The correctionis already done. I opened a ticket for the version number removal: https://forge.typo3.org/issues/64429

Actions

Also available in: Atom PDF