[Typo3] Avoid anchor in text w. image

René Schade schade at hypergenic.com
Mon Sep 5 10:37:58 CEST 2005


Hi list,

A image with text content element might look like this:

---------------------------------
	<!--  CONTENT ELEMENT, uid:373/textpic [begin] -->
		<a name="373"></a>
		<!--  Image block: [begin] -->
			<div align="center"><table width="180" border="0" cellspacing="0" cellpadding="0" class="imgtext-table"><tr><td colspan="1"><img src="clear.gif" width="180" height="1" alt="" /></td></tr><tr><td valign="top"><img src="uploads/pics/1885_Amer2.jpg" width="180" height="142" border="0" align="top" alt="" title="" /><br /></td></tr></table></div><img src="clear.gif" width="1" height="6" border="0" class="spacer-gif" alt="" title="" /><br />
		<!--  Text: [begin] -->
			<p class="bodytext">Se udstillingen Fairy Tales Forever</p>
		<!--  Text: [end] -->
			
		<!--  Image block: [end] -->
			
	<!--  CONTENT ELEMENT, uid:373/textpic [end] -->
----------------------------------

How do I remove the second line <a name="373"></a>? Due to an error in IE, the line forces the paragraph comint just before this content element to be partly invisible.

In typoscript I fetch the content like this:
    10 = CONTENT
    10{
      table = tt_content
      select{
          pidInList = 4
          where = tx_itevhojrespalte_styles = 0
          andWhere = tx_itevhojrespalte_locationpages REGEXP '^{field:uid},|,{field:uid},|{field:uid}$'
          andWhere.insertData = 1
      }

Regards,
René





More information about the TYPO3-english mailing list