[TYPO3-templavoila] desgin/mapping-question
Andreas Förthner
Andreas.Foerthner at netlogix.de
Sat Apr 8 15:32:06 CEST 2006
kleinerChemiker schrieb:
> My menu looks like that:
>
> <div class="menu1">
> <div class="menu1_1_start"></div>
> <div class="menu1_1"><a href="Allgemeines.3.0.html" onfocus="blurLink(this);">Allgemeines</a></div>
> <div class="menu1_2"><a href="Seite-1.5.0.html" onfocus="blurLink(this);">Seite 1</a></div>
> <div class="menu1_2"><a href="Seite-2.4.0.html" onfocus="blurLink(this);">Seite 2</a></div>
> <div class="menu1_1_ende"></div>
> <div class="menu1_1_start"></div>
> <div class="menu1_1"><a href="Spezielles.8.0.html" onfocus="blurLink(this);">Spezielles</a></div>
> <div class="menu1_1_ende"></div>
> </div>
>
> the menu is mapped as div.menu1/inner and created by TS.
>
> i would like to change the part above to:
>
> <div class="menu1">
> <div class="menu1_1_start"></div>
> <div class="menu1_1"><a href="Allgemeines.3.0.html" onfocus="blurLink(this);">Allgemeines</a></div>
> <div class="menu1_2"><a href="Seite-1.5.0.html" onfocus="blurLink(this);">Seite 1</a></div>
> <div class="menu1_2"><a href="Seite-2.4.0.html" onfocus="blurLink(this);">Seite 2</a></div>
> <div class="menu1_1_ende"></div>
> <div class="menu1_1_start"></div>
> <div class="menu1_1"><a href="Spezielles.8.0.html" onfocus="blurLink(this);">Spezielles</a></div>
> <div class="menu1_1_ende"></div>
> <div id="leftcontent"></div>
> </div>
>
> i would like to replace "<div id="leftcontent"></div>" with "<div class="menu1_1_start"></div>CONTENT<div class="menu1_1_ende"></div>" where CONTENT is of course the contentelement(s) from the pagemodul. but how can i wrap the CONTENT with the 2 div's (<div class="menu1_1_start"></div>,<div class="menu1_1_ende"></div>)? Not all contentalements together, but every contentelement should be wraped and its possible that there is no contentelement.
>
> i hope, i could describe my problem well with my limited english knowledge
>
> tia
>
> mik
Hi mik,
I don't know if I got you right but you can wrap CEs with this TS-property:
tt_content.stdWrap.dataWrap = <div class="ce"> |</div>
There you can wrap what ever you want, and if there's no CE there won't
be wrapped anything.
One thing came in my mind when I saw your menu: Why don't you use <ul>
for it? There is a very good article in the artcles section on typo3.org .
If this doesn't help, could you please show us a screenshot or somthing
like that? It's very hard to understand what you want to do.
Greets
Andreas
More information about the TYPO3-project-templavoila
mailing list