Ich bekomm irgendwie das ypmenu nicht hin. Ich verwende die Ext automaketemplate.
Auf der Seite kommt nun vom IE immer ne Fehlermeldung: Fehler:'container' ist Null oder kein Objekt
Hier mein Auszug aus meinem Menu-Setup:
config.no_cache = 1
page.includeLibs.ypmenu= fileadmin/templates/ypMenu/ypMenu.php
page.headerData.11 = TEXT
page.headerData.11.value = <script type="text/javascript" src="/fileadmin/templates/ypMenu/ypSlideOutMenus.js" language="JavaScript"></script>
page.10.subparts.ypmenu.special = directory
page.10.subparts.ypmenu.special.value = 1
page.10.subparts.ypmenu= HMENU
page.10.subparts.ypmenu{
1 = GMENU
1 {
IProcFunc = user_menu->firstLevel
expAll = 1
wrap = |
NO = 1
NO {
wrap = |
XY = [50.w]+20, 31
30 = IMAGE
30.file = fileadmin/templates/ypMenu/1.gif
50 = TEXT
50 {
text.field = title
fontSize = 10
fontFile = fileadmin/templates/fonts/verdana.ttf
fontColor = #222222
offset = 10,20
niceText = 0
transparentBackground = 1
}
100 = || IMAGE
100.file = fileadmin/templates/ypMenu/1.gif
}
IFSUB < page.10.subparts.ypmenu.1.NO
IFSUB = 1
RO < page.10.subparts.ypmenu.1.NO
RO = 1
RO {
backColor = #DDDDDD
30 >
}
IFSUBRO < page.10.subparts.ypmenu.1.NO
IFSUBRO = 1
IFSUBRO {
backColor = #DDDDDD
30 >
}
}
2 = TMENU
2 {
IProcFunc = user_menu->secondLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
3 = TMENU
3 {
IProcFunc = user_menu->thirdLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
4 = TMENU
4 {
IProcFunc = user_menu->fourthLevel
expAll = 1
NO.linkWrap = <li>|</li>
}
}
#temp.ypmenu = USER
#temp.ypmenu.userFunc = user_menu->menuEnd
Und hier vom Seiteninhalt:
plugin.tx_rlmptmplselector_pi1 {
// Define the paths leading to our HTML template files
templatePathMain = fileadmin/templates/main/
templatePathSub = fileadmin/templates/sub/
// Define the filenames used as the default HTML templates
defaultTemplateFileNameMain = main.html
defaultTemplateFileNameSub = ct_1.html
// If there is a page having no template selected, use a template
// selected earlier in the rootline. If there is none, use the default
inheritMainTemplates = 1
inheritSubTemplates = 1
}
plugin.tx_automaketemplate_pi1 {
content < plugin.tx_rlmptmplselector_pi1
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
DIV.all = 1
}
relPathPrefix = fileadmin/templates/main/
}
temp.contentAreaTemplate = TEMPLATE
temp.contentAreaTemplate {
template =< plugin.tx_automaketemplate_pi1
// Modify the template selector config: This is a sub template!
template.content.templateType = sub
workOnSubpart = DOCUMENT_BODY
subparts.CONTENT < styles.content.get
subparts.RCONTENT < styles.content.getRight
subparts.LCONTENT < styles.content.getLeft
subparts.BORDER < styles.content.getBorder
}
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template =< plugin.tx_automaketemplate_pi1
template.content.templateType = main
workOnSubpart = DOCUMENT_BODY
subparts.content < temp.contentAreaTemplate
# subparts.content = CONTENT
# subparts.content < styles.content.get
}
temp.headTemplate = TEMPLATE
temp.headTemplate {
template =< plugin.tx_automaketemplate_pi1
workOnSubpart = DOCUMENT_HEADER
}
page = PAGE
#page.config.incT3Lib_htmlmail = 1
page {
typeNum = 0
bodyTag = <body>
10 < temp.mainTemplate
headerData.10 < temp.headTemplate
}
Im HTML-Template:
<div id="header">
<div id="ypmenu"> </div>
</div>