Zum Inhalt springen

Flexform Konfiguration

Erstellt am 30. April 2016 · Noch keine Antworten

Tags: FlexForms, Frage

olliks1973 ·

Bei meinem Content-Element habe ich die Felder über Flexform in der ext_tables.php eingebunden:
$GLOBALS['TCA']['tt_content']['columns']['pi_flexform']['config']['ds'][',cType'] = 'FILE:EXT:myextension/Configuration/FlexForms/flexform_test.xml';
Die Flexform selber sieht so aus:
<?xml version="1.0" encoding="UTF-8"?>
<T3DataStructure>
<sheets>
<main>
<ROOT>
<el>

<settings.adressen type="array">
<title>Adressen</title>
<type>array</type>
<section>1</section>

<el>
<adressConfiguration>

<el>

<heading>
<TCEforms>
<label>Überschrift</label>
<config>
<type>input</type>
<size>20</size>
<max>40</max>
<eval>trim</eval>
</config>
</TCEforms>
</heading>
<street>
<TCEforms>
<label>Straße</label>
<config>
<type>input</type>
<size>20</size>
<max>40</max>
<eval>trim</eval>
</config>
</TCEforms>
</street>

<zipcode>
<TCEforms>
<label>Postleitzahl</label>
<config>
<type>input</type>
<size>20</size>
<max>40</max>
<eval>trim</eval>
</config>
</TCEforms>
</zipcode>

<city>
<TCEforms>
<label>Stadt</label>
<config>
<type>input</type>
<size>20</size>
<max>40</max>
<eval>trim</eval>
<large-width>2</large-width>
</config>
</TCEforms>
</city>

<marker>
<TCEforms type="array">
<label>Marker</label>
<config type="array">
<type>select</type>
<rendertype>selectSingle</rendertype>
<fileFolder>EXT:myextension/Resources/Public/Icons/Markers/</fileFolder>
<max_size>10240</max_size>
<selicon_cols>8</selicon_cols>
<show_thumbs>1</show_thumbs>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
</TCEforms>
</marker>
</el>
</adressConfiguration>
</el>
</settings.adressen>
</el>
</ROOT>
</main>
</sheets>
</T3DataStructure>

in der Datei Configuration/Tca/override/tt_content.php habe ich die Felder für den entsprechenden cType über das Feld pi_flexform eingebunden:
'cType' => array(
'showitem' => '--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.general;general,cardheight;Kartenhöhe,zoom;Zoomfaktor,--div--;Adressen,pi_flexform,uid,
--div--;LLL:EXT:cms/locallang_ttc.xlf:tabs.access,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.visibility;visibility,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
--palette--;LLL:EXT:cms/locallang_ttc.xlf:palette.access;access,
--div--;LLL:EXT:lang/locallang_tca.xlf:sys_category.tabs.category, categories, tx_gridelements_container, tx_gridelements_columns'

),

Ich habe jetzt 10000 Dinge ausprobiert um die Flexform zu konfigurieren. Ich möchte das die einzelnen Datensätze zuerst zugeklappt sind und die Schaltfläche "Auf/Zuklappen" möchte ich entfernen. Die wird vermutlich durch das Array in der Flexform automatisch generiert. Habe natürlich auch versucht einen config Bereich mit collapseAll und expandSingle zu erstellen aber nichts hat funktioniert. Weiss jemand eine Lösung? Danke
Oliver