|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello,
I am having problems to create the following menu. The idea is that al the submenu's are wraped in a seperate div and that the id of the div corresponds with the head menu item's id. below the page structure. But this can be unlimited. Another question i have is, if it is possible to check if a page entry has content or not? menu 1 menu 1.1 menu 1.2 menu 1.2.1 menu 1.2.2 menu 1.2.2.1 menu 1.2.2.2 etc menu 1.2.3 menu 1.3 This is how the div structure should look like <div id="menu 1"> <ul> <li id="menu 1.1">1.1 menu item</li> <li id="menu 1.2">1.2 menu item</li> <li id="menu 1.3">1.3 menu item</li> </ul> </div> <div id="menu 1.1"> <ul> <li id="menu 1.2.1">1.2.1 menu item</li> <li id="menu 1.2.2">1.2.2 menu item</li> <li id="menu 1.2.3">1.2.3 menu item</li> </ul> </div> <div id="menu 1.2"> <ul> <li id="menu 1.2.1">1.2.1 menu item</li> <li id="menu 1.2.2">1.2.2 menu item</li> <li id="menu 1.2.3">1.2.3 menu item</li> </ul> </div> <div id="menu 1.2.2"> <ul> <li id="menu 1.2.2.1">1.2.2.1 menu item</li> <li id="menu 1.2.2.2">1.2.2.2 menu item</li> </ul> </div> etc etc I am trying to re-create this menu http://joehewitt.com/files/iphone/na...n.html#_albums but so fare i have not succeeded, i am pretty new to typoscript so some help would be appriciated. Kind regards Gijs _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
My wild guess is that it's possible.
http://www.typo3wizard.com/en/snippe...ered-menu.html http://www.typo3wizard.com/en/snippe...ered-menu.html You would have to change it and include the numbers in the menu wraps. You can start playing with the example or wait if someone generously provides you with an exact solution. Tomas Mrozek _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Thanks Thomas,
I tryed them and indeed it's like i want but i still can't figure out how to seprate the menu tree's into div's Regards Gijs Tomas Mrozek schreef: > My wild guess is that it's possible. > http://www.typo3wizard.com/en/snippe...ered-menu.html > > http://www.typo3wizard.com/en/snippe...ered-menu.html > > You would have to change it and include the numbers in the menu wraps. > > You can start playing with the example or wait if someone generously > provides you with an exact solution. > > Tomas Mrozek _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
is there somebody who can give me an example of unested menu tree's?
i can't find any, but may be i'am just looking wrong. regards Gijs Gijs Epping schreef: > Thanks Thomas, > > I tryed them and indeed it's like i want but i still can't figure out > how to seprate the menu tree's into div's > > Regards Gijs > > Tomas Mrozek schreef: >> My wild guess is that it's possible. >> http://www.typo3wizard.com/en/snippe...ered-menu.html >> >> http://www.typo3wizard.com/en/snippe...ered-menu.html >> >> You would have to change it and include the numbers in the menu wraps. >> >> You can start playing with the example or wait if someone generously >> provides you with an exact solution. >> >> Tomas Mrozek _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
Hi Gijs.
Here's a TS snippet I made a couple weeks ago, trying to emulate the setup of the menu at: http://joehewitt.com/files/iphone/navigation.html It uses the page ids for generating the CSS ids. If a page has subpages, then the CSS id is added as section (#), otherwise it just links to the page. -- cut -- lib.iPhoneMenu = COA lib.iPhoneMenu { # Example TypoScript setup for creating a menu as un-nested lists. # For use with the CSS/JS setup found at http://joehewitt.com/files/iphone/navigation.html wrap = <div class="iPhoneMenu"> | </div> 10 = HMENU 10.entryLevel = 0 # 1st level 10.1 = TMENU 10.1 { stdWrap.dataWrap = <ul id="c{field id}" selected="true"> | </ul>expAll = 1 NO { linkWrap = <li>|</li> } IFSUB < .NO IFSUB = 1 IFSUB.doNotLinkIt = 1 IFSUB.stdWrap.typolink.parameter.data = page:uid IFSUB.stdWrap.typolink.section.field = uid } # 2nd level 20 < .10 20.1.stdWrap.dataWrap > 20.1.NO.doNotShowLink = 1 20.1.IFSUB.doNotShowLink = 1 20.2 < .10.1 20.2.stdWrap.dataWrap = <ul id="c{field id}"> | </ul># 3rd level 30 < .20 30.2.stdWrap.dataWrap > 30.2.NO.doNotShowLink = 1 30.2.IFSUB.doNotShowLink = 1 30.3 < .10.1 30.3.stdWrap.dataWrap = <ul id="c{field id}"> | </ul># 4th level 40 < .30 40.3.stdWrap.dataWrap > 40.3.NO.doNotShowLink = 1 40.3.IFSUB.doNotShowLink = 1 40.4 < .10.1 40.4.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>} page.123 < lib.iPhoneMenu -- cut -- -- Peter Klein / Umloud Untd. "Gijs Epping" <gijs.epping (AT) efocus (DOT) nl> wrote in message news:mailman.1.1191848878.11546.typo3-english (AT) lists (DOT) netfielders.de... > is there somebody who can give me an example of unested menu tree's? > > i can't find any, but may be i'am just looking wrong. > > regards Gijs > > > Gijs Epping schreef: >> Thanks Thomas, >> >> I tryed them and indeed it's like i want but i still can't figure out how >> to seprate the menu tree's into div's >> >> Regards Gijs >> >> Tomas Mrozek schreef: >>> My wild guess is that it's possible. >>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>> >>> You would have to change it and include the numbers in the menu wraps. >>> >>> You can start playing with the example or wait if someone generously >>> provides you with an exact solution. >>> >>> Tomas Mrozek _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
Holy crap, i thought i was the only one interested in this menu,
I will try his tonight. Thanks allot! Peter Klein schreef: > Hi Gijs. > Here's a TS snippet I made a couple weeks ago, trying to emulate the setup > of the menu at: > http://joehewitt.com/files/iphone/navigation.html > > It uses the page ids for generating the CSS ids. > If a page has subpages, then the CSS id is added as section (#), otherwise > it just links to the page. > > -- cut -- > lib.iPhoneMenu = COA > lib.iPhoneMenu { > > # Example TypoScript setup for creating a menu as un-nested lists. > # For use with the CSS/JS setup found at > http://joehewitt.com/files/iphone/navigation.html > > wrap = <div class="iPhoneMenu"> | </div> > 10 = HMENU > 10.entryLevel = 0 > > # 1st level > 10.1 = TMENU > 10.1 { > stdWrap.dataWrap = <ul id="c{field id}" selected="true"> | </ul>> expAll = 1 > NO { > linkWrap = <li>|</li> > } > IFSUB < .NO > IFSUB = 1 > IFSUB.doNotLinkIt = 1 > IFSUB.stdWrap.typolink.parameter.data = page:uid > IFSUB.stdWrap.typolink.section.field = uid > } > > # 2nd level > 20 < .10 > 20.1.stdWrap.dataWrap > > 20.1.NO.doNotShowLink = 1 > 20.1.IFSUB.doNotShowLink = 1 > 20.2 < .10.1 > 20.2.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>> > # 3rd level > 30 < .20 > 30.2.stdWrap.dataWrap > > 30.2.NO.doNotShowLink = 1 > 30.2.IFSUB.doNotShowLink = 1 > 30.3 < .10.1 > 30.3.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>> > # 4th level > 40 < .30 > 40.3.stdWrap.dataWrap > > 40.3.NO.doNotShowLink = 1 > 40.3.IFSUB.doNotShowLink = 1 > 40.4 < .10.1 > 40.4.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>> > } > > page.123 < lib.iPhoneMenu > -- cut -- > > -- > Peter Klein / Umloud Untd. > > "Gijs Epping" <gijs.epping (AT) efocus (DOT) nl> wrote in message > news:mailman.1.1191848878.11546.typo3-english (AT) lists (DOT) netfielders.de... >> is there somebody who can give me an example of unested menu tree's? >> >> i can't find any, but may be i'am just looking wrong. >> >> regards Gijs >> >> >> Gijs Epping schreef: >>> Thanks Thomas, >>> >>> I tryed them and indeed it's like i want but i still can't figure out how >>> to seprate the menu tree's into div's >>> >>> Regards Gijs >>> >>> Tomas Mrozek schreef: >>>> My wild guess is that it's possible. >>>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>>> >>>> You would have to change it and include the numbers in the menu wraps. >>>> >>>> You can start playing with the example or wait if someone generously >>>> provides you with an exact solution. >>>> >>>> Tomas Mrozek > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
hello peter,
The menu is working great, i only needed to rebuild a part of the javascript so it is working in ie7, firefox, and safari now only ie6 and then it's ready. If you need the partly rebuilded javascript (with mootools) let me know. Thanks again Gijs Peter Klein schreef: > Hi Gijs. > Here's a TS snippet I made a couple weeks ago, trying to emulate the setup > of the menu at: > http://joehewitt.com/files/iphone/navigation.html > > It uses the page ids for generating the CSS ids. > If a page has subpages, then the CSS id is added as section (#), otherwise > it just links to the page. > > -- cut -- > lib.iPhoneMenu = COA > lib.iPhoneMenu { > > # Example TypoScript setup for creating a menu as un-nested lists. > # For use with the CSS/JS setup found at > http://joehewitt.com/files/iphone/navigation.html > > wrap = <div class="iPhoneMenu"> | </div> > 10 = HMENU > 10.entryLevel = 0 > > # 1st level > 10.1 = TMENU > 10.1 { > stdWrap.dataWrap = <ul id="c{field id}" selected="true"> | </ul>> expAll = 1 > NO { > linkWrap = <li>|</li> > } > IFSUB < .NO > IFSUB = 1 > IFSUB.doNotLinkIt = 1 > IFSUB.stdWrap.typolink.parameter.data = page:uid > IFSUB.stdWrap.typolink.section.field = uid > } > > # 2nd level > 20 < .10 > 20.1.stdWrap.dataWrap > > 20.1.NO.doNotShowLink = 1 > 20.1.IFSUB.doNotShowLink = 1 > 20.2 < .10.1 > 20.2.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>> > # 3rd level > 30 < .20 > 30.2.stdWrap.dataWrap > > 30.2.NO.doNotShowLink = 1 > 30.2.IFSUB.doNotShowLink = 1 > 30.3 < .10.1 > 30.3.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>> > # 4th level > 40 < .30 > 40.3.stdWrap.dataWrap > > 40.3.NO.doNotShowLink = 1 > 40.3.IFSUB.doNotShowLink = 1 > 40.4 < .10.1 > 40.4.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>> > } > > page.123 < lib.iPhoneMenu > -- cut -- > > -- > Peter Klein / Umloud Untd. > > "Gijs Epping" <gijs.epping (AT) efocus (DOT) nl> wrote in message > news:mailman.1.1191848878.11546.typo3-english (AT) lists (DOT) netfielders.de... >> is there somebody who can give me an example of unested menu tree's? >> >> i can't find any, but may be i'am just looking wrong. >> >> regards Gijs >> >> >> Gijs Epping schreef: >>> Thanks Thomas, >>> >>> I tryed them and indeed it's like i want but i still can't figure out how >>> to seprate the menu tree's into div's >>> >>> Regards Gijs >>> >>> Tomas Mrozek schreef: >>>> My wild guess is that it's possible. >>>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>>> >>>> You would have to change it and include the numbers in the menu wraps. >>>> >>>> You can start playing with the example or wait if someone generously >>>> provides you with an exact solution. >>>> >>>> Tomas Mrozek > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#8
|
|||
|
|||
|
Hi Gijs.
It's a good idea to post your JS code here, and maybe also on http://www.typo3wizard.com as I already posted the TS code for the menu there.. http://www.typo3wizard.com/en/snippe...ists.html#c496 -- Peter Klein/Umloud Untd "Gijs Epping" <gijs.epping (AT) efocus (DOT) nl> skrev i en meddelelse news:mailman.1.1192517886.24551.typo3-english (AT) lists (DOT) netfielders.de... > hello peter, > > The menu is working great, i only needed to rebuild a part of the > javascript so it is working in ie7, firefox, and safari now only ie6 and > then it's ready. > > If you need the partly rebuilded javascript (with mootools) let me know. > > Thanks again > Gijs > > > Peter Klein schreef: >> Hi Gijs. >> Here's a TS snippet I made a couple weeks ago, trying to emulate the >> setup of the menu at: >> http://joehewitt.com/files/iphone/navigation.html >> >> It uses the page ids for generating the CSS ids. >> If a page has subpages, then the CSS id is added as section (#), >> otherwise it just links to the page. >> >> -- cut -- >> lib.iPhoneMenu = COA >> lib.iPhoneMenu { >> >> # Example TypoScript setup for creating a menu as un-nested lists. >> # For use with the CSS/JS setup found at >> http://joehewitt.com/files/iphone/navigation.html >> >> wrap = <div class="iPhoneMenu"> | </div> >> 10 = HMENU >> 10.entryLevel = 0 >> >> # 1st level >> 10.1 = TMENU >> 10.1 { >> stdWrap.dataWrap = <ul id="c{field id}" selected="true"> | </ul>>> expAll = 1 >> NO { >> linkWrap = <li>|</li> >> } >> IFSUB < .NO >> IFSUB = 1 >> IFSUB.doNotLinkIt = 1 >> IFSUB.stdWrap.typolink.parameter.data = page:uid >> IFSUB.stdWrap.typolink.section.field = uid >> } >> >> # 2nd level >> 20 < .10 >> 20.1.stdWrap.dataWrap > >> 20.1.NO.doNotShowLink = 1 >> 20.1.IFSUB.doNotShowLink = 1 >> 20.2 < .10.1 >> 20.2.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>>> >> # 3rd level >> 30 < .20 >> 30.2.stdWrap.dataWrap > >> 30.2.NO.doNotShowLink = 1 >> 30.2.IFSUB.doNotShowLink = 1 >> 30.3 < .10.1 >> 30.3.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>>> >> # 4th level >> 40 < .30 >> 40.3.stdWrap.dataWrap > >> 40.3.NO.doNotShowLink = 1 >> 40.3.IFSUB.doNotShowLink = 1 >> 40.4 < .10.1 >> 40.4.stdWrap.dataWrap = <ul id="c{field id}"> | </ul>>> >> } >> >> page.123 < lib.iPhoneMenu >> -- cut -- >> >> -- >> Peter Klein / Umloud Untd. >> >> "Gijs Epping" <gijs.epping (AT) efocus (DOT) nl> wrote in message >> news:mailman.1.1191848878.11546.typo3-english (AT) lists (DOT) netfielders.de... >>> is there somebody who can give me an example of unested menu tree's? >>> >>> i can't find any, but may be i'am just looking wrong. >>> >>> regards Gijs >>> >>> >>> Gijs Epping schreef: >>>> Thanks Thomas, >>>> >>>> I tryed them and indeed it's like i want but i still can't figure out >>>> how to seprate the menu tree's into div's >>>> >>>> Regards Gijs >>>> >>>> Tomas Mrozek schreef: >>>>> My wild guess is that it's possible. >>>>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>>>> http://www.typo3wizard.com/en/snippe...ered-menu.html >>>>> >>>>> You would have to change it and include the numbers in the menu wraps. >>>>> >>>>> You can start playing with the example or wait if someone generously >>>>> provides you with an exact solution. >>>>> >>>>> Tomas Mrozek >> _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Menü entryLevel | mail@alsenz.net | typo3-german@lists.netfielders.de | 0 | 10.09.2007 09:40 |
| [TYPO3-german] Entrylevel und COA ?? | Jochen Graf | typo3-german@lists.netfielders.de | 5 | 31.08.2007 17:38 |
| [TYPO3] HMENU, entryLevel = 1 problem.... | Giannis Economou | typo3-english@lists.netfielders.de | 2 | 07.03.2007 03:00 |
| [TYPO3] insert tmenu into other tmenu | Patrick Pirrotte | typo3-english@lists.netfielders.de | 2 | 21.12.2006 10:50 |
| [TYPO3-german] entryLevel = -1 | Thomas Mammitzsch | typo3-german@lists.netfielders.de | 2 | 05.12.2006 16:43 |