[TYPO3-german] Menü auf Drei Ebenen erweitert
Wolfgang Andres
wolf.andres at web.de
Mon Jan 12 20:33:04 CET 2015
Hallo zusammen,
habe mein vorhandenes Menü auf die dritte Ebene erweitert. Es funktioniert, aber da ich mich noch nicht so gut auskenne, würde ich mich freuen, wenn jemand das Script überprüft!
Ist das Original eigentlich in Ordnung? Ich habe es so übernommen????
Wer kann mir da helfen?
Besten Dank schon mal im Voraus!!!
Original:
-----------
lib.topbar = COA
lib.topbar{
wrap = <nav class="top-bar">|</nav>
10 = COA
10{
wrap = <ul class="title-area">|</ul>
10 = TEXT
10 {
data = page:subtitle // page:title
crop = 20| ...|1
wrap = <li class="name"><h1><a href="#">|</a></h1></li>
}
20 = TEXT
20.value = <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
}
20 = COA
20.wrap = <section class="top-bar-section">|</section>
20.10 = HMENU
20.10{
1 = TMENU
1{
wrap = <ul class="left">| </ul>
expAll = 1
noBlur = 1
NO=1
NO{
wrapItemAndSub = <li class="first" >|</li>|*|<li class="">|</li>|*|<li class=""> |</li>||<li class="last"> |</li>
#stdWrap.case = upper
}
IFSUB < .NO
IFSUB{
wrapItemAndSub = <li class="has-dropdown first">|</li>|*|<li class="has-dropdown">|</li>|*|<li class="has-dropdown"> |</li>||<li class="has-dropdown last"> |</li>
ATagParams =
}
ACT < .NO
ACT{
wrapItemAndSub = <li class="first active">|</li>|*|<li class="active">|</li>|*|<li class="active"> |</li>||<li class="last active"> |</li>
ATagParams = class="active"
}
ACTIFSUB < .NO
ACTIFSUB{
wrapItemAndSub = <li class="first active has-dropdown">|</li>|*|<li class="active has-dropdown">|</li>|*|<li class="active has-dropdown"> |</li>||<li class="last active has-dropdown"> |</li>
ATagParams = class="active"
}
CUR < .ACT
CUR{
}
}
2 < .1
2{
wrap = <ul class="dropdown">|</ul>
NO=1
NO{
#stdWrap.wrap = <span>» </span>|
stdWrap.case >
}
ACT{
#stdWrap.wrap = <span>» </span>|
stdWrap.case >
}
CUR{
#stdWrap.wrap = <span>» </span>|
stdWrap.case >
}
IFSUB{
#stdWrap.wrap = <span>» </span>|
stdWrap.case >
}
CURIFSUB{
#stdWrap.wrap = <span>» </span>|
stdWrap.case >
}
ACTIFSUB{
#stdWrap.wrap = <span>» </span>|
stdWrap.case >
}
}
3 < .2
}
}
#***********************************************
# Menu Hauptmenu
#***********************************************
lib.mainNavigation = HMENU
lib.mainNavigation{
#entryLevel = 1
excludeUidList = 7
1 = TMENU
1{
wrap=<h1 class="hidden">Hauptnavigation</h1><nav><ul id="mainNavigation"> | </ul></nav>
expAll = 1
noBlur = 1
NO=1
NO{
wrapItemAndSub = <li> | </li>
ATagTitle.field = abstract//description//subtitle//title
stdWrap.case = upper
}
ACT < .NO
ACT{
wrapItemAndSub = <li class="current">|</li>
ATagParams = class="current"
}
ACTIFSUB < .NO
ACTIFSUB{
wrapItemAndSub = <li class="current currentsub">|</li>
ATagParams = class="current currentsub"
}
SPC {
before.dataWrap = <li class="spacer"><div class="menuespacer"> </div></li>|
doNotShowLink = 1
}
}
}
#***********************************************
# Menu Hauptmenu
#***********************************************
lib.subNavigation = HMENU
lib.subNavigation{
entryLevel = 1
#excludeUidList = 10
1 = TMENU
1{
wrap=<h1 class="hidden">Unternavigation</h1><nav><ul id="subNavigation"> | </ul></nav>
expAll = 0
noBlur = 1
NO=1
NO{
wrapItemAndSub = <li><span>»</span> | </li>
ATagTitle.field = abstract//description//subtitle//title
#stdWrap.case = upper
}
ACT < .NO
ACT{
wrapItemAndSub = <li class="current"><span>»</span>|</li>
ATagParams = class="current"
}
ACTIFSUB < .NO
ACTIFSUB{
wrapItemAndSub = <li class="current currentsub"><span>»</span>|</li>
ATagParams = class="current currentsub"
}
SPC {
before.dataWrap = <li class="spacer"><div class="menuespacer"> </div></li>|
doNotShowLink = 1
}
}
2 < .1
2{
wrap = <ul>|</ul>
NO {
wrapItemAndSub = <li class="first"><span>›</span>|</li>|*|<li><span>›</span>|</li>|*|<li><span>›</span> |</li>||<li class="last"><span>›</span> |</li>
stdWrap.case >
}
ACT{
wrapItemAndSub = <li class="current first"><span>›</span>|</li>|*|<li class="current"><span>›</span>|</li>|*|<li class="current"><span>›</span>|</li>||<li class="current last"><span>›</span>|</li>
ATagTitle.field = title
wrapItemAndSub.insertData >
stdWrap.case >
}
ACTIFSUB < .2.ACT
}
}
#***********************************************
# Menu Metanavigation
#***********************************************
lib.metaNavigation = COA
lib.metaNavigation{
wrap=<h1 class="hidden">wichtige Seiten</h1><nav><ul id="metaNavigation"> | </ul></nav>
20 = HMENU
20{
special = directory
special.value = 7
1 = TMENU
1{
noBlur = 1
NO=1
NO{
linkWrap = <li>|<span>|</span></li> |*| <li>|<span>|</span></li> |*| <li>|</li>
ATagTitle.field = abstract//description//subtitle//title
}
ACT < .NO
ACT{
ATagParams = class="current"
}
}
}
}
**********************************************************************************************************************************************************
**********************************************************************************************************************************************************
**********************************************************************************************************************************************************
Geändertes Script für die dritte Menü-Ebene:
------------------------------------------------------------
lib.topbar = COA
lib.topbar{
wrap = <nav class="top-bar"> | </nav>
10 = COA
10{
wrap = <ul class="title-area"> | </ul>
10 = TEXT
10 {
data = page:subtitle // page:title
crop = 20| ...|1
wrap = <li class="name"><h1><a href="#"> | </a></h1></li>
}
20 = TEXT
20.value = <li class="toggle-topbar menu-icon"><a href="#"><span>Menu</span></a></li>
}
20 = COA
20.wrap = <section class="top-bar-section"> | </section>
20.10 = HMENU
20.10{
1 = TMENU
1{
wrap = <ul class="left"> | </ul>
expAll = 1
noBlur = 1
NO=1
NO{
wrapItemAndSub = <li class="first" > | </li> |*| <li class=""> | </li> |*| <li class=""> | </li> || <li class="last"> | </li>
#stdWrap.case = upper
}
IFSUB < .NO
IFSUB{
wrapItemAndSub = <li class="has-dropdown first"> |</li>|*|<li class="has-dropdown"> |</li>|*|<li class="has-dropdown"> |</li>||<li class="has-dropdown last"> |</li>
ATagParams =
}
ACT < .NO
ACT{
wrapItemAndSub = <li class="first active"> | </li> |*| <li class="active"> | </li> |*| <li class="active"> | </li> || <li class="last active"> | </li>
ATagParams = class="active"
}
ACTIFSUB < .NO
ACTIFSUB{
wrapItemAndSub = <li class="first active has-dropdown"> | </li> |*| <li class="active has-dropdown"> | </li> |*| <li class="active has-dropdown"> | </li> || <li class="last active has-dropdown"> | </li>
ATagParams = class="active"
}
CUR < .ACT
CUR{
}
}
2 < .1
2{
wrap = <ul class="dropdown"> | </ul>
NO=1
NO{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
ACT{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
CUR{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
IFSUB{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
CURIFSUB{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
ACTIFSUB{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
}
3 < .2
3{
wrap = <ul class="dropdown"> | </ul>
NO=1
NO{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
ACT{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
CUR{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
IFSUB{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
CURIFSUB{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
ACTIFSUB{
#stdWrap.wrap = <span>» </span> |
stdWrap.case >
}
}
4 < .3
}
}
#***********************************************
# Menu Hauptmenu
#***********************************************
lib.mainNavigation = HMENU
lib.mainNavigation{
#entryLevel = 1
excludeUidList = 7
1 = TMENU
1{
wrap=<h1 class="hidden">Hauptnavigation</h1><nav><ul id="mainNavigation"> | </ul></nav>
expAll = 1
noBlur = 1
NO=1
NO{
wrapItemAndSub = <li> | </li>
ATagTitle.field = abstract//description//subtitle//title
stdWrap.case = upper
}
ACT < .NO
ACT{
wrapItemAndSub = <li class="current"> | </li>
ATagParams = class="current"
}
ACTIFSUB < .NO
ACTIFSUB{
wrapItemAndSub = <li class="current currentsub"> | </li>
ATagParams = class="current currentsub"
}
SPC {
before.dataWrap = <li class="spacer"><div class="menuespacer"> </div></li> |
doNotShowLink = 1
}
}
}
#***********************************************
# Menu Hauptmenu
#***********************************************
lib.subNavigation = HMENU
lib.subNavigation{
entryLevel = 1
#excludeUidList = 10
1 = TMENU
1{
wrap=<h1 class="hidden">Unternavigation</h1><nav><ul id="subNavigation"> | </ul></nav>
expAll = 0
noBlur = 1
NO=1
NO{
wrapItemAndSub = <li><span>»</span> | </li>
ATagTitle.field = abstract//description//subtitle//title
#stdWrap.case = upper
}
ACT < .NO
ACT{
wrapItemAndSub = <li class="current"><span>»</span> | </li>
ATagParams = class="current"
}
ACTIFSUB < .NO
ACTIFSUB{
wrapItemAndSub = <li class="current currentsub"><span>»</span> | </li>
ATagParams = class="current currentsub"
}
SPC {
before.dataWrap = <li class="spacer"><div class="menuespacer"> </div></li> |
doNotShowLink = 1
}
}
2 < .1
2{
wrap=<h1 class="hidden">Unternavigation</h1><nav><ul id="subNavigation"> | </ul></nav>
expAll = 0
noBlur = 1
NO=1
NO{
wrapItemAndSub = <li><span>»</span> | </li>
ATagTitle.field = abstract//description//subtitle//title
#stdWrap.case = upper
}
ACT < .NO
ACT{
wrapItemAndSub = <li class="current"><span>»</span> | </li>
ATagParams = class="current"
}
ACTIFSUB < .NO
ACTIFSUB{
wrapItemAndSub = <li class="current currentsub"><span>»</span> | </li>
ATagParams = class="current currentsub"
}
SPC {
before.dataWrap = <li class="spacer"><div class="menuespacer"> </div></li> |
doNotShowLink = 1
}
}
3 < .2
3{
wrap = <ul>|</ul>
NO {
wrapItemAndSub = <li class="first"><span>›</span> | </li> |*| <li><span>›</span> | </li> |*| <li><span>›</span> | </li> || <li class="last"><span>›</span> | </li>
stdWrap.case >
}
ACT{
wrapItemAndSub = <li class="current first"><span>›</span> | </li> |*| <li class="current"><span>›</span> | </li> |*| <li class="current"><span>›</span> | </li> || <li class="current last"><span>›</span> | </li>
ATagTitle.field = title
wrapItemAndSub.insertData >
stdWrap.case >
}
ACTIFSUB < .3.ACT
}
}
#***********************************************
# Menu Metanavigation
#***********************************************
lib.metaNavigation = COA
lib.metaNavigation{
wrap=<h1 class="hidden">wichtige Seiten</h1><nav><ul id="metaNavigation"> | </ul></nav>
20 = HMENU
20{
special = directory
special.value = 7
1 = TMENU
1{
noBlur = 1
NO=1
NO{
linkWrap = <li>|<span>|</span></li> |*| <li> | <span>|</span></li> |*| <li> | </li>
ATagTitle.field = abstract//description//subtitle//title
}
ACT < .NO
ACT{
ATagParams = class="current"
}
}
}
}
More information about the TYPO3-german
mailing list