ReStructured Text InfrastructureTYPO3 CMS - What's Newwiki.typo3.orgTYPO3 CMS Documentation

Task #57479

Document TCA DisplayCond

Added by Tymoteusz Motylewski over 1 year ago. Updated about 1 year ago.

Status:Closed Start date:2014-04-01
Priority:Should have Due date:
Assigned To:Francois Suter % Done:

100%

Category:-
Target version:6.2.0

Description

Since 6.1 you can use OR and AND conditions in the DisplayCond property of TCA
see http://forge.typo3.org/issues/18211

Great german description with examples is here:
http://jweiland.net/typo3/extension-programmierung/displaycond.html


Related issues

related to Core - Feature #18211: Array of display conditions for TCA fields instead of 1 s... Resolved 2008-02-14

History

#1 Updated by Francois Suter about 1 year ago

  • Project changed from Documentation to TCA Reference

#2 Updated by Francois Suter about 1 year ago

  • Status changed from New to Needs Feedback
  • Assigned To set to Francois Suter

This is actually documented here:

http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Index.html?highlight=displaycond#displaycond

Do you feel that more information is needed?

#3 Updated by Tymoteusz Motylewski about 1 year ago

Hi,
thanks for pointing me to the link, I haven't seen it :)
It would be nice if documentation also mentions more complex scenarios like combination of AND and OR conditions.

eg. sth like:

'displayCond' => array(
        'AND' => array(
            'EXT:test123:LOADED:TRUE',
            'OR' => array(
                'FIELD:amount:<:10',
                'FIELD:excludes:>:5',
            ),
        ),
    ),

#4 Updated by Francois Suter about 1 year ago

  • Status changed from Needs Feedback to Accepted
  • Target version set to 6.2.0

#5 Updated by Francois Suter about 1 year ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

#6 Updated by Francois Suter about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF