[TYPO3-core] RFC #10011: New feature: TypoScript Condition to check for installed extensions

Steffen Kamper info at sk-typo3.de
Wed Dec 24 12:45:58 CET 2008


Hi,

Dmitry Dulepov schrieb:
> Hi!
> 
> Franz Holzinger wrote:
>> Problem:
>> Sometimes you must have a different TypoScript if an extension has been
>> installed. And you want to write a common TypoScript usable for a lot of
>> websites. You need a condition to check if an extension has been installed.
>>
>> Solution:
>> Enhance the TypoScript conditions by 'ext'.
> 
> I'd prefer "extension".
>

both ext and extension doesn't reflect what's the condition is about. I 
would prefer
extIsLoaded or extensionIsLoaded

>> Syntax:
>> [ext = extension1,extension2, ...]
> 
> When I saw comma in your patch description, I automatically assumed that condition should return true if all extensions in the list are installed. But the patch shows that if a single extension in the list is installed, condition returns true. Confusing.
> 
> Also this is not how other conditions work. They typically have only one value to check. If you want "or" for conditions, you would do:
> 
> [glovalVar = TSFE:id = 5] || [glovalVar = TSFE:id = 6]
>

the "or" normally works with comma-list
[glovalVar = TSFE:id = 5, TSFE:id = 8, TSFE:id = 15]

So i would expect "or" with comma list, && with seperate conditions.

vg Steffen


More information about the TYPO3-team-core mailing list