| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung |
| typo3:dce [2014/09/30 21:36] – admin | typo3:dce [2016/03/11 21:27] (aktuell) – [FAL-Bild mit Verlinkung] admin |
|---|
| |
| **DCE Konfiguration:** | **DCE Konfiguration:** |
| <code typoscript> | <code xml> |
| <config> | <config> |
| <type>inline</type> | <type>inline</type> |
| <foreign_table_field>tablenames</foreign_table_field> | <foreign_table_field>tablenames</foreign_table_field> |
| <foreign_match_fields> | <foreign_match_fields> |
| <fieldname>image</fieldname> <!-- HIER NAMEN DER VARIABLEN EINTRAGEN! --> | <fieldname>fal</fieldname> <!-- HIER NAMEN DER VARIABLEN EINTRAGEN! --> |
| </foreign_match_fields> | </foreign_match_fields> |
| <foreign_label>uid_local</foreign_label> | <foreign_label>uid_local</foreign_label> |
| </config> | </config> |
| </foreign_selector_fieldTcaOverride> | </foreign_selector_fieldTcaOverride> |
| | <foreign_types type="array"> |
| | <numIndex index="2"> |
| | <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem> |
| | </numIndex> |
| | </foreign_types> |
| |
| <minitems>0</minitems> | <minitems>0</minitems> |
| <maxitems>3</maxitems> | <maxitems>99</maxitems> |
| |
| <appearance> | <appearance> |
| <headerThumbnail> | <headerThumbnail> |
| <field>uid_local</field> | <field>uid_local</field> |
| <width>64</width> | <width>45c</width> |
| <height>64</height> | <height>45</height> |
| </headerThumbnail> | </headerThumbnail> |
| |
| <showPossibleLocalizationRecords>1</showPossibleLocalizationRecords> | <showPossibleLocalizationRecords>0</showPossibleLocalizationRecords> |
| <showRemovedLocalizationRecords>1</showRemovedLocalizationRecords> | <showRemovedLocalizationRecords>0</showRemovedLocalizationRecords> |
| <showSynchronizationLink>1</showSynchronizationLink> | <showSynchronizationLink>0</showSynchronizationLink> |
| | <useSortable>1</useSortable> |
| <enabledControls> | <enabledControls> |
| <info>0</info> | <info>1</info> |
| <new>0</new> | <new>0</new> |
| <dragdrop>0</dragdrop> | <dragdrop>0</dragdrop> |
| <f:image src="{fileReference.uid}" alt="" treatIdAsReference="1" maxWidth="200" /> | <f:image src="{fileReference.uid}" alt="" treatIdAsReference="1" maxWidth="200" /> |
| </a> | </a> |
| | </f:for> |
| | </code> |
| | |
| | ---- |
| | |
| | ===== FAL-Bild mit Verlinkung ===== |
| | |
| | Mit ''<dce:typolink>'' kann auf das FAL-Linkfeld zugegriffen werden. Dieses ist seit DCE 1.0.3 per default vorhanden; in älteren Versionen muss das Feld noch hinzugefügt werden: |
| | |
| | **DCE Konfiguration:** |
| | <code xml> |
| | <foreign_types type="array"> |
| | <numIndex index="2"> |
| | <showitem>--palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette,--palette--;;filePalette</showitem> |
| | </numIndex> |
| | </foreign_types> |
| | </code> |
| | |
| | **DCE Template:** |
| | <code html> |
| | <f:for each="{dce:fal(field:'image', contentObject:contentObject)}" as="fileReference"> |
| | <dce:typolink parameter="{fileReference.link}"> |
| | <f:image src="{fileReference.uid}" alt="" treatIdAsReference="1" /> |
| | </dce:typolink> |
| </f:for> | </f:for> |
| </code> | </code> |
| |
| **DCE Konfiguration:** | **DCE Konfiguration:** |
| <code typoscript> | <code xml> |
| <!-- Konfiguration "simple input field" ohne 'required' --> | <!-- Konfiguration "simple input field" (ohne 'required') --> |
| <config> | <config> |
| <type>input</type> | <type>input</type> |