[Typo3] Templavoila FCE & Typoscript
Dmitry Dulepov
typo3 at fm-world.ru
Wed Nov 30 16:50:34 CET 2005
Hi!
Nikolas Hagelstein wrote:
> The strange thing is about 3. shouldn't the tag beeing wraped because of
> inner mapping?
> There seems to be little inconsisty about inner/outer mapping on nested CO
> elements ?!
I noticed it too. There was a discussion about it but I do not remember
what was decided (is it a bug or not). I usually map SC/CO to the same
element. I use inner for SC and outer for its CO.
I would do that HTML template like this:
<div class="wrap">
<div class="line">
<a href="">lalla</a>
<div>
</div>
and DS:
ROOT
CO | field_wrap | Map to <div class="wrap">, INNER
SC | field_linksc | Map to <div class="line">, INNER
CO | field_linkscco | Map to <div class="line">, OUTER
ATTR | field_href, a:attr:href | Map to href@<a> tag
EL | field_text | Map to <a>, INNER
Unfortunately this mapping requires a patch from bugtracker (TV cannot
map inside tag if tag's attribute is already mapped).
I usually follow the above shown strategy in extensions when I have to
create complex layouts.
For example, I use such structure in one extension to generate a list of
links where site visitors congratulate each other (see areas in red):
http://www.fm-world.ru/tmp/ds.gif
Dmitry.
More information about the TYPO3-english
mailing list