[Typo3] Is this a TV's bug?

Martin Wan mwan at objectivasoftware.com
Thu Sep 1 10:07:22 CEST 2005


Hi,

I found a cunning phenomenon. I use TV to map the following structure:

<tr>
    <td colspan="2">
        <a href="#">
            <img src="images/image1.jpg" width="27" height="13" border="0">
        </a>
   </td>
</tr>
<tr>
    <td height="71"></td>
    <td height="71" align="right">
        <img src="images/image2.jpg" width="117" height="58">
    </td>
</tr>

I set a link attribute to institute the image1's link URL, and use an
element to institute the image2.jpg. After all works are finished, Typo3 add
a link to image1.jpg, and also add a link to image2.jpg. The generated html
codes is below:

<tr>
    <td colspan="2">
        <a href="typo3.org">
            <img src="images/image1.jpg" width="27" height="13" border="0">
        </a>
   </td>
</tr>
<tr>
    <td height="71"></td>
    <td height="71" align="right">
        <a href=" typo3.org">
        <img src="uploads/tx_templavoila/banner-falsch.gif" width="117"
height="58" border="0" alt="" title="" />
        </a>
    </td>
</tr>

I found in the data structure generated by TV, the image2 part is:
            <field_image type="array">
                <tx_templavoila type="array">
                    <title>Clue Image</title>
                    <description>The image under the text
body.</description>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>image</eType>
                    <tags>img</tags>
                    <TypoScript>
	10 = IMAGE
	10.file.import = uploads/tx_templavoila/
	10.file.import.current = 1
	10.file.import.listNum = 0
	10.file.maxW = 117
							
	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>Clue Image</label>
                </TCEforms>
            </field_image>

I think maybe the line: 10.stdWrap.typolink.parameter.field = field_link do
the job, so I remove it. Then it works fine.

I don't know why TV automatically add this line into the image2 part and why
it automatically add a link to wrap the image2? Should I check every data
structure generated by TV and remove the link wrap lines?




Martin Wan





More information about the TYPO3-english mailing list