Hallo!
Ich würde gerne mein Bild mit einer CSS Klasse besetzen, dafür habe, ich mir eine Select Box ins FCE gebaut - leider gibt er mit folg. Code nur den Namen des Feldes aus und nicht deren Inhalt im HTML Code aus
Also im Code steht dann "field:bild_align" statts "bild-rechts"
#angry#
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
<ROOT type="array">
<tx_templavoila type="array">
<title>ROOT</title>
<description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
</tx_templavoila>
<type>array</type>
<el type="array">
<ueberschrift type="array">
<tx_templavoila type="array">
<title>Überschrift</title>
<sample_data type="array">
<numIndex index="0">Ich bin Blindtext</numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Überschrift</label>
</TCEforms>
</ueberschrift>
<text type="array">
<tx_templavoila type="array">
<title>Text</title>
<sample_data type="array">
<numIndex index="0">Ich bin Blindtext. Von Geburt an. Es hat lange gedauert, bis ich begriffen habe, was es bedeutet, ein blinder Text zu sein:</numIndex>
</sample_data>
<eType>rte</eType>
<TypoScript>
<![CDATA[
10 = TEXT
10.current = 1
10.parseFunc = < lib.parseFunc_RTE
10.parseFunc < tt_content.text.20.parseFunc
]]>
</TypoScript>
<proc type="array">
<HSC type="integer">0</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>text</type>
<cols>48</cols>
<rows>5</rows>
</config>
<defaultExtras>richtext[*]:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
<label>Text</label>
</TCEforms>
</text>
<bild type="array">
<tx_templavoila type="array">
<title>Bild</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
<![CDATA[
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 220
10.altText.field = bildalttext
10.titleText.field = bildttitletext
10.params = class="{field:bild_align}"
10.params.insertData = 1
]]>
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,png,jpg,jpeg</allowed>
<max_size>1000</max_size>
<uploadfolder>uploads/tx_templavoila</uploadfolder>
<show_thumbs>1</show_thumbs>
<size>1</size>
<maxitems>1</maxitems>
<minitems>0</minitems>
</config>
<label>Bild</label>
</TCEforms>
</bild>
<bild_align type="array">
<type>no_map</type>
<tx_templavoila type="array">
<title>Bildausrichtung</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>select</eType>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">rechts</numIndex>
<numIndex index="1">bild-rechts</numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">links</numIndex>
<numIndex index="1">bild-links</numIndex>
</numIndex> </items>
<default>0</default>
</config>
<label>Bildausrichtung</label>
</TCEforms>
</bild_align>
<bildalttext type="array">
<type>no_map</type>
<tx_templavoila type="array">
<title>Bild Alt Text</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Bild Alt Text</label>
</TCEforms>
</bildalttext>
<bildttitletext type="array">
<type>no_map</type>
<tx_templavoila type="array">
<title>Bild Title Text</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>input</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>48</size>
<eval>trim</eval>
</config>
<label>Bild Title Text</label>
</TCEforms>
</bildttitletext>
</el>
</ROOT>
</T3DataStructure>
Was mache ich falsch?
Wie kann ich den Inhalt aus dem Selectfeld auslesen?!?
Besten dank!