[TYPO3-templavoila] TV Attribute mapping problem

Jacob Rasmussen jr at concare.net
Thu Oct 12 10:58:57 CEST 2006


Hi,

> > Old html template:
> 
> Let's look at this this first.
> 
> So you have:
>     TD:ATTR:style -> field_top_banner
>     	DIV:INNER -> hovedmenu
> 	A:ATTR:href -> website
> 	A:ATTR:href -> mail
> 
> > New html template:
> 
> Now let's look at this:
> 
> 	DIV:INNER -> hovedmenu
> 		A:ATTR:href -> website
> 		A:ATTR:href -> mail
> 
> So, you have both "A"s *inside* DIV, which is mapped as 
> INNER. Mapping tag as INNER means that you completely replace 
> content of that tag with something else. So, what you get as 
> a result of this mapping is:
> 
> -------------------------
> <body>
> <div id="wrapper">
> 	<div id="top_frame" style="...">
> 		<div align="center">
> 
> 		</div>
> 	</div>
> </div>
> </body>
> -------------------------
> 
> You see? :) INNER removes anything inside the tag, so there 
> is no "A"s anymore. This is why TV shows exclamation marks.
> 

You're absolutely right... :)
I know how the system works but I guess I've been looking at the
template for so long, that I've gone codeblind...

Thanks a lot for your help, and btw TV is a really great tool

Rgds
Jacob 



More information about the TYPO3-project-templavoila mailing list