Bug #59890
closedEscaping dots in page.meta TypoScript
100%
Description
The TypoScript documentation
http://docs.typo3.org/TYPO3/TyposcriptSyntaxReference/Syntax/TypoScriptSyntax/Index.html
says:
"Since TYPO3 6.2 dots in the object path can be escaped using a backslash."
But this is not working in page.meta.
page.meta { DC\.title = Test DC\.creator = Test }
Also it would be very helpful to be able to escape colon for Open Graph meta as well.
page.meta { og\:title = Test og\:locale = en_GB }
Updated by Markus Klein over 10 years ago
Hi Jan,
seems we've two separate bugs here.
The dot problem is not a TS problem, but rather a problem of the meta tag generation.
I never tried it, but why is it necessary at all to escape the colon?
Updated by Jan Kiesewetter over 10 years ago
Hi Markus,
it is not necessary to excape colons, but it don't get rendered if there is one in the key.
Updated by Markus Klein over 10 years ago
Ok, so actually the bug is that colon is not accepted as key at all. I've to look into that.
Updated by Jan Kiesewetter over 10 years ago
OK, maybe we should split this into two bugs and focus here on escaping the dots as this is documented to work in general.
If the documentation says that ist possible to escape dots in object path than this should work in page.meta as well.
page.meta.DC\.title.field = title
Should result in
<meta name="DC.title" content="foo bar">
Updated by Markus Klein over 10 years ago
Yes, I'll file a separate issue about the colon thing, once I took a closer look, what is wrong.
Updated by Markus Klein over 10 years ago
- Category set to TypoScript
- Status changed from New to Accepted
- Assignee set to Markus Klein
- Priority changed from Should have to Must have
- Target version set to next-patchlevel
- Complexity set to easy
I can confirm the improper handling of dots in the meta tags code.
Updated by Gerrit Code Review over 10 years ago
- Status changed from Accepted 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/31192
Updated by Gerrit Code Review over 10 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/31192
Updated by Gerrit Code Review over 10 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/31192
Updated by Gerrit Code Review over 10 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/31192
Updated by Gerrit Code Review over 10 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/31192
Updated by Gerrit Code Review over 10 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/31406
Updated by Markus Klein over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 15959967268a2dd8c94ad4378115b636e2054701.