Feature #22992
closedPagerenderer - use better method for adding meta tags
100%
Description
atm meta tags are added with complete html tag.
The better method would be to add tags with a name and the content.
Additional you can add additional parameters as key/value pairs in an array.
There is an exception: if in this additional parameters a pair exists with key "http-equiv", it replaces the name.
Examples:
$pageRenderer->addMetaTag('author', 'John Doe'); => <meta name="author" content="John Doe" /> $pageRenderer->addMetaTag('robots', 'noindex'); => <meta name="robots" content="noindex" /> $pageRenderer->addMetaTag('author', 'John Doe'); $pageRenderer->addMetaTag('', '5; URL=http://www.example.org/', array('http-equiv' => 'refresh'); => <meta http-equiv="refresh" content="5; URL=http://www.example.org/" /> $pageRenderer->addMetaTag('DC.format', 'text/html', array('scheme' => 'DCTERMS.IMT'); => <meta name="DC.format" content="text/html" scheme="DCTERMS.IMT">
(issue imported from #M14860)
Files
Updated by Simon Schick over 14 years ago
Please add a manual how I can access this in TypoScript if you've finished this task.
I'm looking forward to use it.
Updated by Ernesto Baschny about 14 years ago
@Simon, if you are still interested, test v3 of the patch and take a look at it and then come to the core list and give your vote (+1). See http://typo3.org/teams/core/core-mailinglist-rules/
Updated by Xavier Perseguers over 13 years ago
- Target version changed from 4.6.0-beta1 to 4.6.0-beta2
Updated by Xavier Perseguers about 13 years ago
- Target version changed from 4.6.0-beta2 to 4.6.0-beta3
Updated by Oliver Hader about 13 years ago
- Target version changed from 4.6.0-beta3 to 4.6.0-RC1
Updated by Xavier Perseguers about 13 years ago
- Target version changed from 4.6.0-RC1 to 4.6.0
Updated by Chris topher about 13 years ago
- Target version changed from 4.6.0 to 4.6.1
Updated by Chris topher almost 13 years ago
- Target version changed from 4.6.1 to 4.6.2
Updated by Xavier Perseguers almost 13 years ago
- Assignee deleted (
Steffen Kamper) - Target version deleted (
4.6.2)
Updated by Alexander Opitz almost 10 years ago
- Status changed from Accepted to Needs Feedback
- Is Regression set to No
Hi,
does the problem still exists within newer versions of TYPO3 CMS (6.2.9)?
Updated by Simon Schaufelberger almost 10 years ago
Alexander, this is a feature, not a bug!
Updated by Alexander Opitz almost 10 years ago
Yes, but the question remains.
Does something exists, like you requested it, in 6.2 or not?
Updated by Simon Schaufelberger almost 10 years ago
check source code ;) haha of course not.
Updated by Alexander Opitz over 8 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.
Updated by Jigal van Hemert over 8 years ago
- File 14860_v4.diff 14860_v4.diff added
- File 14860_test.diff 14860_test.diff added
- Tracker changed from Bug to Feature
- Status changed from Closed to New
Review in core list was never finished. Attached v4 of the patch and unit tests.
Can you apply appropriate changes to the current master and push to gerrit?
Updated by Gerrit Code Review over 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48552
Updated by Gerrit Code Review over 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48552
Updated by Gerrit Code Review over 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48552
Updated by Gerrit Code Review over 8 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48552
Updated by Gerrit Code Review over 8 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48552
Updated by Gerrit Code Review over 8 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48552
Updated by Gerrit Code Review over 8 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/48552
Updated by Riccardo De Contardi about 7 years ago
I summarize here the content of the issue #58167 (related to this one) to keep track of it:
If you write in your TS template:
config.doctype = xhtml_11
or even
config.doctype = xhtml_11 config.additionalHeaders = Content-Type: application/xhtml+xml
the output will always be <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
instead of <meta http-equiv="Content-Type" application/xhtml+xml; charset=utf-8"/>
. Also the response header will be still Content-Type:text/html; charset=utf-8
The only way to wirte the correct meta http-equiv would be remove everything with
disableAllHeaderCode = 1
Updated by Riccardo De Contardi about 7 years ago
- Related to Feature #81464: Add API for meta tag management added
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Under Review to Closed
I close this as duplicate; please continue on #81464. Thank you.
Updated by Gerrit Code Review about 7 years ago
- Status changed from Closed to Under Review
Patch set 15 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Gerrit Code Review about 7 years ago
Patch set 16 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Gerrit Code Review about 7 years ago
Patch set 17 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Gerrit Code Review about 7 years ago
Patch set 18 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Gerrit Code Review about 7 years ago
Patch set 19 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Gerrit Code Review about 7 years ago
Patch set 20 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Gerrit Code Review about 7 years ago
Patch set 21 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Gerrit Code Review about 7 years ago
Patch set 22 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/53110
Updated by Mathias Schreiber about 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 96144717d7a7df9c226cd6eae9fed12020a54e1f.