Hallo
Also ich finde einfach nicht den Fehler was ich hier falsch gemacht habe! Vielleicht kann mir hier jemand einen Tipp geben!
Das ist der HTML Code soweit kein Problem:
PHP-Code:
<div class="eintrag" style="background-image:url(bild.jpg);">
<div class="box_rechts_titel">Header</div>
<div class="box_rechts_text">Text
<div class="boxlink"><a href="#"><strong>Preis</strong><h1>120</h1></a></div>
</div>
</div>
Jetzt Mappe ich das ganze:
PHP-Code:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<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">
<field_header type="array">
<tx_templavoila type="array">
<title>Überschrift</title>
<sample_data type="array">
<numIndex index="0">Überschrift</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>
</field_header>
<field_text type="array">
<tx_templavoila type="array">
<title>Content</title>
<sample_data type="array">
<numIndex index="0">Content</numIndex>
</sample_data>
<eType>rte</eType>
<TypoScript><![CDATA[
10 = TEXT
10.current = 1
10.parseFunc = < lib.parseFunc_RTE
]]></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>
<softref>typolink_tag,images,email[subst],url</softref>
</config>
<defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
<label>Content</label>
</TCEforms>
</field_text>
<field_bild type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Bild</title>
<sample_data type="array">
<numIndex index="0">Bild</numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
10 = IMG_RESOURCE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 200
10.stdWrap.typolink.parameter.field = field_link
10.stdWrap.wrap = background-image:url( | );
</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>
</field_bild>
<field_preistext type="array">
<tx_templavoila type="array">
<title>Preistext</title>
<sample_data type="array">
<numIndex index="0">Preistext</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>Preistext</label>
</TCEforms>
</field_preistext>
<field_preis type="array">
<tx_templavoila type="array">
<title>Preis</title>
<sample_data type="array">
<numIndex index="0">Preis</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>Preis</label>
</TCEforms>
</field_preis>
<field_link type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Link</title>
<sample_data type="array">
<numIndex index="0">Link</numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>input</type>
<size>15</size>
<max>256</max>
<checkbox></checkbox>
<eval>trim</eval>
<wizards type="array">
<_PADDING type="integer">2</_PADDING>
<link type="array">
<type>popup</type>
<title>Link</title>
<icon>link_popup.gif</icon>
<script>browse_links.php?mode=wizard</script>
<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
<label>Link</label>
</TCEforms>
</field_link>
</el>
</ROOT>
</T3DataStructure>
Okay also für mich wäre ja alles verständlich und klar doch leider ist es so nicht! Denn als Ergebniss bekomme ich
PHP-Code:
<div class="eintrag" style="" index.php?id="13"" target="_self">uploads/tx_templavoila/handy.jpg);">
<div class="box_rechts_titel">Jetzt neu</div>
<div class="box_rechts_text">
<div class="box_content">
<ul>
<li></li>
</ul>
</div>
<div class="boxlink"><a href="index.php?id=13" class="link" id="link">nur jetzt um
<h1>0 Euro</h1>
</a></div>
</div>
</div>
Also normal sollte unter eintrag im style einfach das Hintergrundbild getauscht werden!
10 = IMG_RESOURCE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 200
10.stdWrap.typolink.parameter.field = field_link
10.stdWrap.wrap = background-image:url( | );
tut es auch wenn ich keinen Link eingebe! Jedoch wenn ich einen Link dazu gebe dann wird aufeinmal das daraus!
<div class="eintrag" style="" index.php?id="13"" target="_self">uploads/tx_templavoila/handy.jpg);">
Hoffe auf eine Hilfe für dieses Problem!
Danke!