[TYPO3-english] Flexform questions

Jigal van Hemert jigal.van.hemert at typo3.org
Tue May 8 22:18:33 CEST 2012


On 8-5-2012 14:42, Robert Wildling wrote:
>> <teaserPID>
>> <TCEforms>
>> <onChange>reload</onChange>
>> <label>Select Page (pid)</label>
>> <config>
>> <type>input</type>
>> </config>
>> </TCEforms>
>> </teaserPID>
>> <infoOne>
>> <TCEforms>
>> <displayCond>FIELD:teaserPID:=:0</displayCond>
>> <label>Save to enable new fileds</label>
>> <config>
>> <type>none</type>
>> </config>
>> </TCEforms>
>> </infoOne>
>> My question here is:
>> 1. At the moment, infoOne evaluates against a value of 0 of teaserPID
>> and decides upon that whether to display or not. But what if teaserPID
>> has no value at all? I tried:
>> FIELD:teaserPID:IN:0,NULL,''

What about FIELD:teaserPID:REQ:FALSE ? This will return TRUE if 
teaserPID evaluates to FALSE (i.e. is 0, '' or does not exist).

>> The next step would be to show a field that reads the contents from the
>> table with the pid given in teaserPID in form of a database relation (an
>> empty select box next to a selectbox with a list of content elements to
>> choose from). Here I am totally stuck. The only entry in the Core
>> documentation that can be found when searching for database relation is
>> under allowNonIdValues ...

I think there is enough information in the thread you linked in one of 
your answers to the original question. You can populate the field with a 
custom function using <itemsProcFunc> and retrieve the value of your 
teaserPID using the code in François's answer.

Jigal van Hemert
TYPO3 Core Team member

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

More information about the TYPO3-english mailing list