[TYPO3-core] Different title tag when using "subtitle" field

Jo Hasenau info at cybercraft.de
Mon Sep 8 11:56:43 CEST 2014


>> page.headerData {
>>    10 = TEXT
>>    10 {
>>      dataWrap = <title>{field:title} - custom text</title>
>>      override.dataWrap = <title>{field:subtitle}</title>
>>      override.fieldRequired = subtitle
>>    }
>> }
>
> I'm not so good in TS, but I'm trying. I replace my code with yours and
> now it prints me both "wraps" at one time.
> Now my code looks like this:
>
> page.headerData {
> #Title TAG
>      10 = TEXT
>      10 {
>          dataWrap = <title>|�-something</title>
>          override.dataWrap = |�-something else
>          override.fieldRequired = subtitle
>      }
> }

Just forgot that stdWrap methods are executed in a certain order, so 
dataWrap comes after override. But you can replace dataWrap with

stdWrap.dataWrap

should be working then.

HTH

Joey

-- 
Diversity:
Die Kunst zusammen unabhängig zu denken
The art of thinking independently together.
--
Facebook: https://www.facebook.com/johasenau
Twitter: http://twitter.com/bunnyfield
Xing: http://contact.cybercraft.de
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-team-core mailing list