[TYPO3-english] TYPO3-english Digest, Vol 66, Issue 61
Mohammad Farooq
farooqaassi at gmail.com
Thu Mar 19 13:31:03 CET 2009
Re: TS: Menu splited by 2 itmes (Tadas)
Hi Tadas,
I feel wrapping your menu items in a way that two li classes are
generated repeatedly one after other, like
<li class="first"></li>
<li class="second"></li>
<li class="first"></li>
<li class="second"></li>
<li class="first"></li>
<li class="second"></li>
<li class="first"></li>
<li class="second"></li>
<li class="first"></li>
<li class="second"></li>
and using css you can remove default list-style type from <li
class="second">and make it float after first,
keep the first <li class="first"> so that whenever it gets created a new
line starts,
For above code to appear, you need to split menu in two repeated items,
This line of script does exactly the same: *|*|<li class="first">| </li>
|| <li class="second"> | </li> |*| *
for more clarity:
wrap = <ul class="topmenul2"> | </ul>
NO.wrapItemAndSub = |*|<li class="first">| </li> || <li class="second">
| </li> |*|
IFSUB=1
IFSUB {
wrapItemAndSub = |*|<li class="first">| </li> || <li
class="second"> | </li> |*|
}
Hope this will help you
On Thu, Mar 19, 2009 at 4:00 AM, <typo3-english-request at lists.netfielders.de
> wrote:
> Send TYPO3-english mailing list submissions to
> typo3-english at lists.netfielders.de
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> or, via email, send a message with subject or body 'help' to
> typo3-english-request at lists.netfielders.de
>
> You can reach the person managing the list at
> typo3-english-owner at lists.netfielders.de
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of TYPO3-english digest..."
>
>
> Today's Topics:
>
> 1. TS: Menu splited by 2 itmes (Tadas)
> 2. Re: TS: Menu splited by 2 itmes (Daniel Huf)
> 3. Re: TS: Menu splited by 2 itmes (Mathias Schreiber [wmdb >])
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 19 Mar 2009 10:52:30 +0200
> From: Tadas <tadas at typo3lab.lt>
> Subject: [TYPO3-english] TS: Menu splited by 2 itmes
> To: typo3-english at lists.netfielders.de
> Message-ID:
> <mailman.1.1237452676.28168.typo3-english at lists.netfielders.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Hello Guys,
>
> I have stuck with some TypoScript coding and have no Ideas how to solve
> :) Maybe some help me?
>
> Problem:
>
> Page List witch will be like menus or content block :
>
> MenuList1
> MenuList2
> MenuList3
> MenuList4
> MenuList5
> MenuList6
> MenuList7
>
> And I must have HTML generated code devided menu list in row by 2:
>
> MenuList1 MenuList2
> --------------------------------
> MenuList3 MenuList4
> --------------------------------
> MenuList5 MenuList6
> --------------------------------
> MenuList7
> --------------------------------
>
>
> Here is HTML code for One row:
>
>
> <div class="parallelBlockA03 hasH2">
> <div class="colA01 first">
>
> <h2 class="link first"><a name="h2-2" id="h2-2"
> href="#">MenuList1</a></h2>
> <div class="contentBlockA01">
> <div class="parallelUnitA01 first">
> <div class="colUA01 first">
> <div class="imageBlockA01 first"><a href="#"><img
> height="72" width="72" src="img/st02/fig_02.jpg"
> alt="Placeholder"/></a></div>
> <!--/colUA01-->
> </div>
> <div class="colUA02">
> <div class="defaultParagraph first">
> <p class="first">Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit.</p>
> <!--/defaultParagraph-->
> </div>
> <ul class="linkListA01">
> <li class="first"><a href="#">List item with
> link</a></li>
> <li><a href="#">List item with link</a></li>
> <!--/linkListA01-->
> </ul>
> <!--/colUA02-->
> </div>
> <!--/parallelUnitA01-->
> </div>
> <!--/contentBlockA01-->
> </div>
>
> <!--/colA01-->
> </div>
>
> <div class="colA02">
>
> <h2 class="link first"><a name="h2-2" id="h2-2"
> href="#">MenuList2</a></h2>
> <div class="contentBlockA01">
> <div class="parallelUnitA01 first">
> <div class="colUA01 first">
> <div class="imageBlockA01 first"><a href="#"><img
> height="72" width="72" src="img/st02/fig_02.jpg"
> alt="Placeholder"/></a></div>
> <!--/colUA01-->
> </div>
> <div class="colUA02">
> <div class="defaultParagraph first">
> <p class="first">Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit.</p>
> <!--/defaultParagraph-->
> </div>
> <ul class="linkListA01">
> <li class="first"><a href="#">List item with
> link</a></li>
> <li><a href="#">List item with link</a></li>
> <!--/linkListA01-->
> </ul>
> <!--/colUA02-->
> </div>
> <!--/parallelUnitA01-->
> </div>
> <!--/contentBlockA01-->
> </div>
>
> <!--/colA02-->
> </div>
>
> <!--/parallelBlockA03-->
> </div>
>
> And TypoScript solution:
>
> ???????????????????
>
>
>
> Thanks in Advance.
>
> Tadas Lotu?as
> typo3lab.lt
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 19 Mar 2009 11:58:04 +0100
> From: Daniel Huf <dhuf at cross-systems.com>
> Subject: Re: [TYPO3-english] TS: Menu splited by 2 itmes
> To: typo3-english at lists.netfielders.de
> Message-ID:
> <mailman.1.1237460285.6818.typo3-english at lists.netfielders.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> This page might help else check the other links.
> Sorry never tried myself but saw this page.
> Daniel
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 19 Mar 2009 11:59:56 +0100
> From: "Mathias Schreiber [wmdb >]" <mathias.schreiber at wmdb.de>
> Subject: Re: [TYPO3-english] TS: Menu splited by 2 itmes
> To: typo3-english at lists.netfielders.de
> Message-ID:
> <mailman.1.1237460396.26789.typo3-english at lists.netfielders.de>
> Content-Type: text/plain; charset=UTF-8; format=flowed
>
> Daniel Huf schrieb:
> > This page might help else check the other links.
> > Sorry never tried myself but saw this page.
>
> maybe posting the page might help him even more ;-)
>
>
> ------------------------------
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
> End of TYPO3-english Digest, Vol 66, Issue 61
> *********************************************
>
--
Regards,
Muhammad Farooq
More information about the TYPO3-english
mailing list