Feature #33491

stdWrap for title tag

Added by Philipp Kitzberger almost 8 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2012-01-27
Due date:
% Done:

100%

PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

the pagerenderer uses htmlSpecialChars for the title tag, i guess it would be splendid if there was a whole stdWrap available. then one could easily strip html tags...


Related issues

Related to TYPO3 Core - Feature #43658: Make page-title easily configurable Closed 2012-12-06
Related to TYPO3 Core - Feature #25717: stdWrap for header fields Closed 2011-04-01

Associated revisions

Revision 0b918384 (diff)
Added by Mathias Schreiber almost 5 years ago

[FEATURE] Add stdWrap for title tag

In order to manipulate the title tag in a
flexible manner, the stdWrap option for
the title tag is introduced with the following
parameter:

config.pageTitle

As an example, one can now make the title
tag contents all uppercase.

config.pageTitle.case = upper

Resolves: #33491
Releases: master
Change-Id: I60cbc7aa1d8c6bf33a1ac96c1389a01ff01dbaa7
Reviewed-on: http://review.typo3.org/35691
Reviewed-by: Mathias Schreiber <>
Tested-by: Mathias Schreiber <>
Reviewed-by: Stefan Froemken <>
Tested-by: Stefan Froemken <>
Reviewed-by: Markus Klein <>
Tested-by: Markus Klein <>

History

#1 Updated by Alexander Opitz almost 5 years ago

  • Status changed from New to Needs Feedback

Hi,

does the problem still exists within newer versions of TYPO3 CMS (6.2.9)?

#2 Updated by Riccardo De Contardi almost 5 years ago

In TSREF>config section I don't see how to manipulate title via the stdWrap function

one should do something like:

config.noPageTitle = 2
page.headerData.5 = TEXT
page.headerData.5.field =  title
page.headerData.5.wrap = <title> |</title> 

Then you can manipulate the TEXT object via stdWrap

#3 Updated by Philipp Kitzberger almost 5 years ago

Riccardo De Contardi wrote:

In TSREF>config section I don't see how to manipulate title via the stdWrap function

one should do something like:

[...]

Then you can manipulate the TEXT object via stdWrap

This surely does the trick when one only wants to output the page title as title tag. The website title (set in root TS template) would be missing though. Additionally modification applied to the page title (news extension single view) would simply be ignored by your solution. Therefore not working for me ;-)

#4 Updated by Riccardo De Contardi almost 5 years ago

For advanced title tag management i'd recommend an extension like metaseo http://typo3.org/extensions/repository/view/metaseo

#5 Updated by Philipp Kitzberger almost 5 years ago

Unnecessary when having a stdWrap for the title tag ;-)

#6 Updated by Alexander Opitz almost 5 years ago

  • Category set to TypoScript
  • Status changed from Needs Feedback to New

#7 Updated by Gerrit Code Review almost 5 years ago

  • Status changed from New to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35691

#8 Updated by Gerrit Code Review almost 5 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35691

#9 Updated by Mathias Schreiber almost 5 years ago

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

#10 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF