[TYPO3-ect] Alternatives to TS
Elmar Hinz
elmar.DOT.hinz at team.MINUS.red.DOT.net
Wed May 17 17:17:42 CEST 2006
Ries van Twisk schrieb:
>>>
>>> myMenu = HMENU
>>> myMeny.1 = GMENU
>>> if (myMenu.isEmpty) {
>>> myMenu = TEXT
>>> myMenu.value = sorry, emty menu
>>> }
>>>
The problem with this is that you would need to evaluate the the first two
lines first before you have the necesssary information for the if(). You
would need to jump between PHP evaluation and Skript transformation for
every line.
Still more problematic with this: You couldn't overwrite an above setting
with a line below becaus the above line is already evaluated. That breaks
backwards compatibility.
>>
>>
>> TS is a purely declarative language, and *if* there is a demand for
>> loops and conditionals, we should rather revert to plain PHP instead
>> of inventing yet another programming language.
>>
I would even like to get rid of the conditions, to get rid of the mixture
of technics here. A clean and simple array could be transformed to other
languages like YAML.
> Hey Michael and Elmar,
>
>
> straighten the semantics is indeed a good step towards the right
> direction I had a client wondering
> how to disable links on GMENU.
> On TMENUITEM it's doNotLinkIt, on GMENU it's noLink.
> This is extreemly confusing for people.
>
> Cleaning up but staying backwards compatible does have priority I think.
>
To get rid of the conditions would require more simple if-handling.
Regards
Elmar
More information about the TYPO3-team-extension-coordination
mailing list