[TYPO3-mvc] Flexform Display Condition in Extbase Extension

Jigal van Hemert jigal.van.hemert at typo3.org
Tue Jun 10 13:49:09 CEST 2014


Hi,

On 10-6-2014 9:02, Stefan Kruse wrote:
> Hi, i use a flexform in my extbase extension. I named my fields like
> <settings.contenttype>,<settings.slide>,<settings.selectedcontentelements>,<settings.selectedpages>.
> Ok, now i need some display conditions. Therefore i wrote something like
> <displayCond>FIELD:settings.contenttype:=3</displayCond>. But that
> doesnt work. This field should only appear if the field contenttype is
> 3. With <displayCond>FIELD:contenttype:=3</displayCond> (without
> settings.) ist doesnt work too. How is the right syntax?

displayCond is described in the TCA documentation [1].

Parts are separated by colons (':'), so in your case it should be:

<displayCond>FIELD:settings.contenttype:=:3</displayCond>

[1] 
http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Index.html#displaycond

-- 
Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org


More information about the TYPO3-project-typo3v4mvc mailing list