[TYPO3-dev] condition on language

JoH asenau info at cybercraft.de
Sat Aug 14 18:14:55 CEST 2010


> this won't help as you can't access values in a condition which are
> defined inside another condition. This belongs to the translation
> from TS to PHP.
> all TS except inside conditions is translated. this is the base for
> all condition-tests. after the evaluation of all conditions all TS
> inside the conditions is translated.
> no chance to question a value which is not (re-)defined yet.

So this one should be working and maybe it can help to modify it to the special needs of a plugin.

temp.myPlugin = CASE
temp.myPlugin {
  key.cObject = TEXT
  key.cObject {
    lang {
      de = doit
      en = doit
    }
  }
  default < plugin.myPlugin
  default {
    #something here
  }
  doit < plugin.myPlugin
  doit {
    #something else here
  }
}

plugin.myPlugin >
plugin.myPlugin < temp.myPlugin

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-dev mailing list