[TYPO3-english] Page title with GPvar

JoH asenau info at cybercraft.de
Fri Jul 16 11:11:41 CEST 2010


> Thanks. But it isnt possible to combine keywords like it worked
> before. {GPvar: tx_myextension_pi1 | keyword1} {GPvar:
> tx_myextension_pi1 | keyword2}
> How could i realize it?

You could use a COA or dataWrap.
But since dataWrap comes "after" htmlSpecialChars you will have to "shift" it by using a recursive stdWrap call:

headerData.5 = TEXT
headerData.5 {
    stdWrap.dataWrap = {GPvar:tx_myextension_pi1|keyword1},{GPvar:tx_myextension_pi1|keyword2}
    htmlSpecialChars = 1
    wrap = <title>|</title>
}

COA would be necessary if you want to gain more control over the keywords:

headerData.5 = COA
headerData.5 {
    10 = TEXT
    10 {
        data = GPvar:tx_myextension_pi1|keyword1
        # other functions here
    }
    20 = TEXT
    20 {
        data = GPvar:tx_myextension_pi1|keyword1
        wrap = ,|
        # other functions here
    }
    stdWrap.htmlSpecialChars = 1
    wrap = <title>|</title>
}

HTH

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com


More information about the TYPO3-english mailing list