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

Franz Holzinger franz at ttproducts.de
Tue Aug 24 18:44:51 CEST 2010


Le 24/12/2008 11:31, Franz Holzinger a écrit :
> This is an SVN patch request.
>
> Type: New feature
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=10011
> 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.

Here comes a more enhanced version which also is able to check for a 
specific version number of an installed extension. And even other 
attributes of an extension could be checked, if this information is 
provided.


ext
Syntax:
[ext=extensionkey:parameter = value1, >value2, =value3, <value4, ...]

Comparison:
The values are compared with the attributes of the extension key .
paramters:
isLoaded, title, author, author_email, author_company, version, 
CGLcompliance, CGLcompliance_note
Examples:

	[ext=tt_news:active = 1]
or
	[ext=tt_news:version > 1.2.3]


This patch contains modifications and bug fixes to the extenson 
patch10011 version 0.1.0. 'active' is used instead of 'isLoaded'. See 
Robert Lemke's comment.
Some methods have been borrowed from the EM because they are needed as a 
library. I could remove the duplicate code later in a separate patch.

Regards,

Franz

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10011.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100824/32c04330/attachment.asc>


More information about the TYPO3-team-core mailing list