[TYPO3-templavoila] desgin/mapping-question
kleinerChemiker
kleinerChemiker at web.de
Sun Apr 9 12:03:33 CEST 2006
Andreas Förthner schrieb:
> kleinerChemiker schrieb:
>> Andreas Förthner schrieb:
>>
>>> 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
>>
>>
>> thx. screenshot is a good idea :) the design is not from me, i only
>> modified it a bit so that it fits better for t3.
>>
>> screenshot: http://stud4.tuwien.ac.at/~e9925339/t3.png
>>
>> in the read circle is my main menu. the ts is:
>>
>> lib.menu1 = HMENU
>> lib.menu1.1 = TMENU
>> lib.menu1.1.expAll = 1
>> lib.menu1.1.NO {
>> allWrap = <div class=menu1_1>|</div>
>> wrapItemAndSub = <div class=menu1_1_start></div>|<div
>> class="menu1_1_ende"></div>
>> }
>> lib.menu1.2 = TMENU
>> lib.menu1.2.NO {
>> allWrap = <div class=menu1_2>|</div>
>> }
>>
>> Every contentobject should get its own box. the content should be in a
>> <div>-container, but before and after this container should be <div
>> class=menu1_1_start></div> and <div class="menu1_1_ende"></div>
>>
>>
>> Of course, many pages don't have one of these boxes, they only have
>> the menu. but i would like to have the posibility of adding extra
>> boxes before or after the menu (until now i only asked for after the
>> menu, but before would be the same procedure)
>>
>> hope i could be more clear this time :)
>>
>> tia
>>
>> MIK
> Hi,
>
> let me see if I got you right. You have your menu in those boxes. An
> below the menu there might be some CEs. Those CEs should look like the
> menu therefor you want to wrap you divs arround them, to create this box
> style. Doensn't it work with the CE wrap? Just like that:
>
> tt_content.stdWrap.dataWrap = <div class=menu1_1_start></div>|<div
> class="menu1_1_ende"></div>
>
> Greets
>
> Andreas
Hi,
thx for your help. you got me right :)
But (i hate this word) where can i add your line? If i add it in my template, it is wrapped around every CE. But it should only be wrapped around some of them. I couldn't find anything where i could add it in TV.
tia
mik
More information about the TYPO3-project-templavoila
mailing list