Hallo Forum!
Ich setze aktuell zum Ersten Mal einen "Multi-Onepager" mit Typo3 um.
Sprich wenige Einzelseiten innerhalb welcher mittels Anker zu den "Unterseiten"
gesprungen wird.
Als Grundlage ist die Site über einen ganz normalen Seitenbaum mit Haupt- und
Unterseiten aufgebaut.
Hauptmenü:
page1 - page2 - page3 - page4 ...
Submenü:
- page1#section1
- page1#section2
- page1#section3
- ...
Ich bekomme es leider nicht hin, eine Sitemap zu erstellen, die auf alle Hauptseiten mit
"Unterseiten" (als Anker) verweist.
Folgendes Script hatte ich erfolglos selbst geschrieben:
## Sitemap im Fußbereich ##
lib.footer = COA
lib.footer {
wrap = <nav class="row">|</nav>
10 = HMENU
10 {
entryLevel = 0
excludeUidList = 8,11
includeUidList =
1 = TMENU
1 {
expAll = 1
#wrap = <section class="col-xs-2">|</section>
NO = 1
NO {
wrapItemAndSub = <section class="col-xs-2">|</section>
#wrapItemAndSub = <li>|</li>
stdWrap.htmlSpecialChars = 1
linkWrap = <h1>|</h1>
}
#CUR = 1
#CUR < .NO
#CUR.ATagParams = class=Ebene1CUR
}
2 = TMENU
2 {
expAll = 1
wrap = <ul class="nav">|</ul>
overrideId = 5
NO = 1
#NO < lib.nav-sub.1.NO
NO {
wrapItemAndSub = <li>|</li>
#stdWrap.htmlSpecialChars = 1
#linkWrap = <li>|</li>
}
#CUR = 1
#CUR < .NO
#CUR.ATagParams = class=Ebene2CUR
}
3 < .2
}
}
lib.footer.10.2.NO.stdWrap.typolink.section.cObject = temp.titleSectionId
Und diese hier habe ich aktuell im Einsatz (nur quick copy):
lib.mainMenu = HMENU
lib.mainMenu{
special = directory
special.value = 1
expAll=1
wrap = <nav id="op-nav-wrap"><ul class="opmenu">|</ul></nav>
1 = TMENU
1.expAll=1
1.NO.stdWrap.cObject = TEXT
1.NO.stdWrap.cObject.value =
1.NO.doNotLinkIt = 1
1.IFSUB = 1
1.IFSUB {
doNotLinkIt = 1
stdWrap < temp.titleSectionId
stdWrap.field = tx_realurl_pathsegment // title
stdWrap.noTrimWrap = |<a href="#|">|
before < temp.titleSectionId
before{
wrap = <li data-title="|">
field = tx_realurl_pathsegment // title
}
after.field = title
after.wrap = | </a>
}
#Submenü
2 = TMENU
2.expAll=1
2.wrap = <div class="sub-nav-wrap"><ul class="sub-nav" >|</ul></div>
2.NO = 1
2.NO {
doNotLinkIt = 1
stdWrap < temp.titleSectionId
stdWrap.field = tx_realurl_pathsegment // title
stdWrap.noTrimWrap = |<a href="#|">|
before < temp.titleSectionId
before{
wrap = <li data-title="|">
field = tx_realurl_pathsegment // title
}
after.field = title
after.wrap = | </a>
}
}
Aber die Verweise gehen auf die aktuelle Seite plus Anker statt auf die
Hauptseiten plus Anker...
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german