Benutzer-Werkzeuge

Webseiten-Werkzeuge


typo3:dce

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
typo3:dce [2014/09/30 21:36] admintypo3:dce [2016/03/11 21:27] (aktuell) – [FAL-Bild mit Verlinkung] admin
Zeile 13: Zeile 13:
  
 **DCE Konfiguration:** **DCE Konfiguration:**
-<code typoscript>+<code xml>
 <config> <config>
   <type>inline</type>   <type>inline</type>
Zeile 21: Zeile 21:
   <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>
Zeile 33: Zeile 33:
     </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>
Zeile 41: Zeile 46:
     <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>
Zeile 74: Zeile 80:
     <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>
Zeile 84: Zeile 114:
  
 **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>
typo3/dce.1412105781.txt.gz · Zuletzt geändert: 2015/12/03 19:29 (Externe Bearbeitung)