[TYPO3-templavoila] TV Attribute mapping problem

Dmitry Dulepov dmitry at typo3.org
Wed Oct 11 19:58:25 CEST 2006


Hi!

Jacob Rasmussen wrote:
> I'm using TV 1.1.1 and I have a problem with attribute mappings on a
> template... The template looks like this:
> 
> <div id="wrapper">
> 	<div id="top_frame" style="... Some CSS styling goes here">
> 		<a href="" id="weblink"></a>
> 		<a href="" id="maillink"></a>
> 	</div>
> ...
> 
> Now my problem is that I map the attribute "style" on the second DIV tag
> and I would also like to map the href attribute on the A tags.
> If I only map the DIV or A attributes (I can map both A attributes at
> the same time without troubles), there are no issues... But when I try
> to map both the A attributes and the DIV attributes, TV drops the A
> attribute mappings (shows an exclamation point).

Impossible to comment without seeing DS and how you map.

> In an earlier version of the template I used a table instead of the
> divs, and I was able to map all attributes, but some strange code
> appeared in the template DS, namely the stdWrap which is added below the
> image properties (I use typoscript to determine which background image
> should be used). The two typolinks belong to my a href mappings, and
> shouldn't have been mixed with the td mapping.

This TS code was there in all TV versions, even in 0.3.0.

-- 
Dmitry Dulepov

Web: http://typo3bloke.net/
Skype: callto:liels_bugs

"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)



More information about the TYPO3-project-templavoila mailing list