Project

General

Profile

Actions

Bug #59890

closed

Escaping dots in page.meta TypoScript

Added by Jan Kiesewetter over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
TypoScript
Target version:
Start date:
2014-06-26
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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
}

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #59965: Metatags with colon do not workClosed2014-06-28

Actions
Related to TYPO3 Core - Feature #67360: Allow property as key in page.meta for rendering Open Graph valuesClosedAlexander Kontos2015-06-09

Actions
Actions #1

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?

Actions #2

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.

Actions #3

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.

Actions #4

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">

Actions #5

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.

Actions #6

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.

Actions #7

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

Actions #8

Updated by Markus Klein over 10 years ago

Issue for colons: #59965

Actions #9

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

Actions #10

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

Actions #11

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

Actions #12

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

Actions #13

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

Actions #14

Updated by Markus Klein over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF