Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to select and store ContentElement UID in Flux FlexForm Configuration?
    primarykey
    data
    text
    <p>I'm currently building a TYPO3 PageTemplate with Flux and Fluidpages (both GitHub Master-Branch). I'd like to have the possibility to select a number of ContentElements from the PageTree and store the UIDs in a variable for later rendering.</p> <p>My first approach combining a Flux TreeField with a RelationField:</p> <pre><code> &lt;flux:form.sheet name="content" label="content settings"&gt; &lt;flux:field.tree name="treetest" label="treetest" table="pages" parentField="pid" foreignLabel="title" multiple="true" minItems="0" maxItems="1000" size="8" expandAll="false" /&gt; &lt;flux:field.relation name="relationtest" label="relationtest" table="tt_content" condition="AND tt_content.pid IN ({treetest})" multiple="true" size="8" minItems="0" maxItems="3" /&gt; &lt;/flux:form.sheet&gt; </code></pre> <p>This sadly results in a SQL-Error because the last condition is inserted as:</p> <pre><code> AND tt_content.pid IN (60|foo) </code></pre> <p>Where 'foo' is the title of a SysFolder with the UID 60.</p> <p>Debug-Output in the frontend prints the field 'treetest' as:</p> <pre><code> treetest =&gt; '60' (2 chars) </code></pre> <p>and the condition for the field 'relationtest' as:</p> <pre><code> condition =&gt; 'AND tt_content.pid IN (60)' (26 chars) </code></pre> <p>Questions:</p> <ol> <li><p>As a matter of fact, I'm missing something here and I'd appreciate any hint, where the crux is here?</p></li> <li><p>Is there maybe a different solution to select a ContentElement from the PageTree?</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload