Feature #55281
closed
Page Generator: addMetaTag - TYPO3 version
Added by Unic AG - TYPO3 almost 11 years ago.
Updated almost 10 years ago.
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.
- 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?
- Status changed from Needs Feedback to Closed
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?
Yes, please open a new ticket for the version number removal. At least for a correction to "TYPO3 CMS 6.2"
Also available in: Atom
PDF