[TYPO3-english] multiple displayCond in TCA

Stefan Frömken firma at sfroemken.de
Wed Feb 23 13:14:13 CET 2011


Am 22.02.2011 09:55, schrieb Georg Schönweger:
> Hi Stefan,
>
> thx for your efforts! where is
> "t3lib_contextmenu_abstractdataprovider.php" located? Can't find it in
> T3 4.5.

The namingconvention of TYPO3 is very nice. the first parts are the 
foldernames and the last part the filename itself. So you should find 
this file here:

/t3lib/contextmenu/abstractdataprovider.php

> Sry but i don't understand .. Is this your code or is it already in Typo3?
This code is allready in TYPO3. In my opinion it would be cool to copy 
this part of code into TCEforms.
>
> ----
>      // parse condition string
>      $conditions = array();
>      preg_match_all('/(.+?)(>=|<=|!=|=|>|<)(.+?)(\|\||&&|$)/is',
> $displayCondition, $conditions);
>
>      $lastResult = FALSE;
>      $chainType = '';
>      $amountOfConditions = count($conditions[0]);
>      for ($i = 0; $i<  $amountOfConditions; ++$i) {
> ----
>
> Are feature requests for T3 Core made via bugs.typo3.org?
>
> - Georg
>


More information about the TYPO3-english mailing list