DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

EXT: check for installed extensions

Author:Kasper Skårhøj
Created:2002-11-01T00:32:00
Changed by:Franz Holzinger
Changed:2015-05-01T18:08:41
Classification:patch10011
Keywords:forEditors, forDevelopers, forIntermediates, Extension Manager
Author:Franz Holzinger
Email:franz@ttproducts.de
Info 4:
Language:en

img-1 EXT: check for installed extensions - patch10011

EXT: check for installed extensions

Extension Key: patch10011

Language: en

Keywords: forEditors, forDevelopers, forIntermediates, Extension Manager

Copyright 2015, Franz Holzinger, <franz@ttproducts.de>

This document is published under the Open Content License

available from http://www.opencontent.org/opl.shtml

The content of this document is related to TYPO3

- a GNU/GPL CMS/Framework available from www.typo3.org

Table of Contents

EXT: check for installed extensions 1

`Introduction 3 <#__RefHeading__401_1027078062>`_

What does it do? 3

`Users manual 4 <#__RefHeading__405_1027078062>`_

`Administration 5 <#__RefHeading__407_1027078062>`_

Reference 5

`Known problems 6 <#__RefHeading__411_1027078062>`_

`To-Do list 7 <#__RefHeading__413_1027078062>`_

`ChangeLog 8 <#__RefHeading__415_1027078062>`_

Introduction

What does it do?

  • It is sometimes necessary to give a different setup if an additional extension has been installed. See bug10011 , which is pending in the Core list for many years. You can use this to write one template setup for several sites with different installed extensions. You can configure an alternative output in the FE if an extension has not been installed. This can be used also for the default setup of extensions. Maybe you want to read an additional table field from the database if another extension has been installed.
  • The Typoscript match condition userFunc (user defined) allows to have multiple parameters and a return value which can be checked against string values.

Example:

[userFunc = tx_ttproducts_match_condition->checkShipping(delivery, country_code) = DEU]
some Typoscript lines


[ext=tt_news:version > 3.5.99]
Typoscript lines which will be active only if tt_news in a version greater than 3.5.99 has been installed.

Users manual

Just install the extension together with any other extension which supports this patch. This will enable new conditions for the template setup.

Be aware that this extension is using code based on the replacement of TYPO3 classes. Maybe it will make parts of TYPO3 unusable. If you discover any trouble with TYPO3 conditions, then deinstall this extension.

Administration

Reference

See TSref

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

The values are compared with the attributes of the extension key .

paramters:

active, title, author, author_email, author_company, version, CGLcompliance, CGLcompliance_note

Examples:
[ext=tt_news:active = 1]

or

[ext=tt_news:version > 1.2.3]

Known problems

  • In TYPO3 6.x.x before 6.2.13 you must apply this patch: https://review.typo3.org/#/c/38917/
  • Some TYPO3 Core developer consider this patch as not useful. Please explain them the reasons why the current TYPO3 possibilities are not sufficient and simple enough to get the job done.

To-Do list

  • This patch should become part of TYPO3. If you consider this extension useful, then please add your comments here: https://forge.typo3.org/issues/19739

  • Outdated info: This patch has been pending in the Core list since 2008.

    img-2

ChangeLog

See the file "ChangeLog"

8