[TYPO3-templavoila] link attribute error
Lukas Rueegg
t3.no-spam at rtpartner.ch
Sun Feb 11 21:29:33 CET 2007
hi list
i have the following HTML code in a FCE in TV 1.3.0, TYPO3 4.0.4:
<div class="trenner clearfix">
<a href="#">
<img class="float_left" src="img/content/some-image.jpg" alt=""
width="180" height="119" />
<img src="img/common/some-image.gif" alt="" width="151" height="82"
/><br/><br />
<span>some text</span></a></div>
the href-attribute of the a-tag should be replaced by an attribute
field. this indeed happens, but unfortunately, the a-tag gets opened a
second time just afterwards, closed and reopened after the first image
and closed again after the second image:
<div class="trenner clearfix"><a href="index.php?id=22"><a
href="index.php?id=22" ><img src="typo3temp/GB/25296b63e8.gif"
width="180" height="119" alt="" title="" /></a><a href="index.php?id=22"
><img src="typo3temp/GB/4bbbf314f0.gif" width="151" height="82" alt=""
title="" /></a><br /><br /> <span>some text</span></a></div>
as you can see, something goes really wrong here... does anybody has an
idea how i can avoid this error? or is it a bug of TV?
thanks for any help.
lukas.
below, you find the correspondent DS:
<?xml version="1.0" encoding="utf-8" 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_link type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Link</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<tags>a</tags>
<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>
<field_image type="array">
<tx_templavoila type="array">
<title>Bild</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>imagefixed</eType>
<TypoScript>
10 = IMAGE
10.file = GIFBUILDER
10.file {
XY = 180,119
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 180
10.file.minW = 180
10.file.maxH = 119
10.file.minH = 119
}
10.stdWrap.typolink.parameter.field = field_link
</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_image>
<field_logo type="array">
<tx_templavoila type="array">
<title>Logo</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>imagefixed</eType>
<TypoScript>
10 = IMAGE
10.file = GIFBUILDER
10.file {
XY = 151,82
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 151
10.file.minW = 151
10.file.maxH = 82
10.file.minH = 82
}
10.stdWrap.typolink.parameter.field = field_link
</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>Logo</label>
</TCEforms>
</field_logo>
<field_text type="array">
<tx_templavoila type="array">
<title>Text</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>text</eType>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>text</type>
<cols>48</cols>
<rows>5</rows>
</config>
<label>Text</label>
</TCEforms>
</field_text>
</el>
</ROOT>
</T3DataStructure>
More information about the TYPO3-project-templavoila
mailing list