[TYPO3-ect] Alternatives to TS
Ries van Twisk
typo3 at rvt.dds.nl
Wed May 17 23:37:15 CEST 2006
Elmar Hinz wrote:
>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.
>
>
I think I understand what you are saying here, we don't want to evaluate
it because it takes processor time, right?
I think it should be possible to quickly evaluate if a menu would be
empty or not instead of running it through the complete
menu generation.
You are right on the part below.. the if handeling is way to cryptic for
most users, I think only Peter Klein
really understands them!
a good clean way if using if, would already help a lot....
Only the one below never ever worked for me... Don't ask me way, I
couldn't figure it out...
myMenu.isEmpty < othercObj
Ries
>
>
>
>>>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
>
>
>
>
>_______________________________________________
>TYPO3-team-extension-coordination mailing list
>TYPO3-team-extension-coordination at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-team-extension-coordination
>
>
>
--
Ries van Twisk
Freelance Typo3 Developer
=== Private:
email: ries at vantwisk.nl
web: http://www.rvantwisk.nl/freelance-typo3.html
skype: callto://r.vantwisk
=== Work:
email: ries at livetravelguides.com
web: http://www.livetravelguides.com
More information about the TYPO3-team-extension-coordination
mailing list