[TYPO3-dev] TemplaVoila bug - Wrapping everything in a link?

Neil Bertram neil at tasmanstudios.co.nz
Mon May 29 04:52:41 CEST 2006


Hi,

I'm having a strange problem with TemplaVoila. I'm using a section 
container with a repeatable element inside.

The code for the repeatable element:
<div class="focus">
	<img src="images/focus/one.jpg" width="48" height="59" alt="" />
	<h2>Are You Prepared?</h2>
	<p>Aenean ultrices laoreet libero; ultrices laoreet libero.</p>
	<div class="focusLink"><a href="#">More&gt;&gt;</a></div>
</div>

The problem is that when I map the A tag as a link attribute mapping, 
the output shows this:
<div class="focus">
			<a href="http://focus.com"><img src="typo3temp/GB/163c2a4b3d.gif" 
width="48" height="59" alt="" title="" /></a>
			<h2><a href="http://focus.com">Focus Box One</a></h2>
			<p>This is the very first focus box!</p>
			<div class="focusLink"><a href="http://focus.com">More&gt;&gt;</a></div>
		</div>


As you can see, it's basically wrapping everything except for the text 
with a typolink, rather than just the A-tag as it should be. If I delete 
the mapping for the link from the template, the A-tag is no longer a 
link, but the other elements are still wrapped in the value the link had 
before I deleted it! Something is very wrong here.

The page is perfectly valid XHTML 1.0 Strict, and I've tried deleting 
the entire TemplaVoila template and starting again, and it happens 
consistently.

This is on TYPO3 4.0, TemplaVoila 1.0.1, PHP 4.4.2

What should I do?


Neil




More information about the TYPO3-dev mailing list