[TYPO3-english] cal and tt_address localisation via typoscript

Christoph Hermann hermann at informatik.uni-freiburg.de
Sun Feb 12 18:00:57 CET 2012


Hi,

i'm trying to write some typoscript to enable the localisation of some fields 
in cal and or tt_address.

My typoscript looks like this so far:

plugin.tx_cal_controller.view.event.event.title.split {
            token.char = 124
            cObjNum = 1
            1 {
               current = 1
               if.value < config.sys_language_uid
               if.equals.data = TSFE:register|SPLIT_COUNT
            }
}

plugin.tx_cal_controller.view.event.event.location.split {
            token.char = 124
            cObjNum = 1
            1 {
               current = 1
               if.value < config.sys_language_uid
               if.equals.data = TSFE:register|SPLIT_COUNT
            }
}

This allows me to have the title field like this: 
"First language | second language | ..."

If a "|" (char 124) is contained in the field this works fine.

Now i want to add a condition that if the field does NOT contain a pipe, then 
the whole field is displayed instead of splitting it.
Is this possible and if how?


regards
Christoph Hermann

-- 
Christoph Hermann
Institut für Informatik
Tel: +49 761-203-8171 Fax: +49 761-203-8162
e-mail: hermann at informatik.uni-freiburg.de


More information about the TYPO3-english mailing list