Hallo,
ich habe ein Problem!
Wenn ich das folgende Script ohne directory ausführe (mit Auto-Parser) wird die Navigation - Menu 1 - (obere Bereich) angezeigt!
Wenn ich aber "special = directory" und "special.value = 12" zuweise dann wird mir nur die oberste Navigation angezeigt und die darunter liegenden Seiten nicht. Es sind noch 2 weitere Menüs mit im Script! Kann mir jemand helfen...
Hier der typoscript:
# Erstellen eines Zweisprachigen Menues
config.linkVars = L
config.sys_language_uid = 0
config.language = de
[globalVar = GP:L=1]
config.sys_language_uid = 1
config.language = en
[global]
# Default PAGE object:
page = PAGE
# Configuring the Auto-Parser:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/templates/atlas/atlas.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = HEADER_SECTION
HEAD.rmTagSections = title
# TD.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/templates/atlas/
}
# Menu 1 cObject
temp.menu_1 = HMENU
temp.menu_1.special = directory
temp.menu_1.special.value = 471
# temp.menu_1.excludeUidList = 472
# temp.menu_1.entryLevel = 1
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level1-no">|</div>
}
}
ACT {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level1-act">|</div>
}
}
}
temp.menu_1.2 = TMENU
temp.menu_1.2 {
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level2-no">|</div>
}
}
ACT {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level2-act">|</div>
}
}
}
temp.menu_1.3 = TMENU
temp.menu_1.3 {
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level2-no">|</div>
}
}
ACT {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level2-act">|</div>
}
}
}
temp.menu_1.4 = TMENU
temp.menu_1.4 {
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level2-no">|</div>
}
}
ACT {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
wrap = <div class="menu1-level2-act">|</div>
}
}
}
# Main TEMPLATE cObject for the BODY
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <body>-tags
workOnSubpart = DOCUMENT_BODY
# Substitute the ###menu_1### subpart with some example content:
subparts.menu_1 = TEXT
subparts.menu_1 < temp.menu_1
# Substitute the ###menu_2### subpart with some example content:
subparts.menu_2 = TEXT
subparts.menu_2 < temp.tmenulayers1
subparts.menu_2_1 = TEXT
subparts.menu_2_1 < temp.tmenulayers2
# Substitute the ###menu_3### subpart with some example content:
#subparts.menu_3 = TEXT
#subparts.menu_3.value = HELLO WORLD - MENU FOOTER
# Substitute the ###menu_4### subpart with some example content:
#subparts.menu_4 = TEXT
#subparts.menu_4.value = HELLO WORLD - MENU Right
lib.pageTitle = TEXT
lib.pageTitle.value = {page:title}
lib.pageTitle.insertData = 1
# Substitute the ###MainHeader### subpart with some example content:
subparts.MainHeader = TEXT
#subparts.MainHeader.value = HELLO WORLD - Top Banner
#subparts.MainHeader.value = {page:title}
subparts.MainHeader.value = {leveltitle:2}
subparts.MainHeader.insertData = 1
#Main content
subparts.main_content < styles.content.get
# Rand ausgeben
subparts.RAND < styles.content.getBorder
subparts.LANGUAGE = TEXT
subparts.LANGUAGE.value = THIS LANGUAGE
}
# Main TEMPLATE cObject for the HEAD
temp.headTemplate = TEMPLATE
temp.headTemplate {
# Feeding the content from the Auto-parser to the TEMPLATE cObject:
template =< plugin.tx_automaketemplate_pi1
# Select only the content between the <head>-tags
workOnSubpart = DOCUMENT_HEADER
}
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10 < temp.headTemplate
Vielen DANK für EURE HILFE!!!!