Zum Inhalt springen

ypmenu?

Erstellt am 10. Februar 2006 · 3 Antworten · letzte Antwort am 10. Februar 2006

Tags: Frage

michlbeck ·

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>
speda ·
woida schrieb

Erst schreibst du in page.10 dein ypmenu rein, danach überschreibst du es mit deinem Tempalte.

hi woida,
hast du auch eine Antwort, wenn die Untermenüs nicht angezeigt werden??
Die Ebene 1 wird ohne Probleme Angezeigt. Leider aber nicht die Untermenues.

Bin mittlerweile Ratlos, woran es liegen kann.

page.includeLibs.ypMenu = fileadmin/scripts/ypMenue/ypMenu.php
page.headerData.11 = TEXT
page.headerData.11.value = <script type="text/javascript" src="fileadmin/scripts/ypMenue/ypSlideOutMenus.js" language="JavaScript"></script>
........
## MENU
temp.ypMenu = HMENU
temp.ypMenu.special = directory
temp.ypMenu.special.value = 10
temp.ypMenu{
     1 = GMENU
     1 {
          IProcFunc = user_menu->firstLevel
          expAll = 1
          wrap = |
          NO = 1
          NO  {
                 wrap =  <img src="fileadmin/media/ornametnWHITE.gif" width="15" hight="14" alt="" />| <img src="fileadmin/media/ornametnWHITE.gif" width="15" hight="14" alt="" />|*| | <img src="fileadmin/media/ornametnWHITE.gif" width="15" hight="14" alt="" />|*| |
                 XY = [50.w]+10, 19
                backColor = #D5B76E
                 transparentColor = #D5B76E
               #30 = IMAGE
               #30.file = fileadmin/media/ornametnWHITE.gif
               50 = TEXT
               50 {
                    text.field = title
                    fontSize = 12
                    fontFile = fileadmin/font/palabi.ttf
                    fontColor = #A52A2A
                    spacing = 1
                    offset = 10, 15
                    niceText = 0
                    transparentBackground = 1
                    
                      # Schatteneffekt  
                      emboss{
                          offset = 1, 1
                          highColor = #000000 : + 30
                          lowColor = #F1E6C7 : - 30
                          blur = 40
                          opacity = 40
               }
          }
               #Menufarbverlauf bei Mausout
               #40 = IMAGE
               #40.file = fileadmin/images/Button1.gif
               #40.backColor = #C3A665
               #40.transparentColor = #C3A665
               #40.transparentBackground = 1  

               #100 = || IMAGE
               #100.file = fileadmin/media/ornametnWHITE.gif
               #100.file.height = 20
               #100.file.width = 15
               #100.offset = 0, -1
     } 
          #IFSUB < temp.ypMenu.1.NO
          IFSUB < .NO
          IFSUB = 1

          #RO < temp.ypMenu.1.NO
          RO < .NO
          RO = 1
          RO {
               backColor = #D5B76E
               transparentColor = #D5B76E
               50 = TEXT
               50 {
                    text.field = title
                    fontSize = 12
                    fontFile = fileadmin/font/palabi.ttf
                    fontColor = #FFFFFF
                    offset = 10, 15
                    niceText = 0
                    transparentBackground = 1
         }
               30 >
        
     }

          #ACT < temp.ypMenu.1.NO
          ACT < .NO
          ACT = 1
          ACT {
               backColor = #D5B76E
               transparentColor = #D5B76E
               50 = TEXT
               50{
                    text.field = title
                    fontSize = 12
                    fontFile = fileadmin/font/palabi.ttf
                    fontColor = #FFFFFF
                    offset = 10, 15
                    niceText = 0
                    transparentBackground = 1
          }
               30 >
     
 }
          IFSUBRO < .NO
          IFSUBRO = 1
          IFSUBRO {
               backColor = #D5B76E
               transparentColor = #D5B76E
               50 = TEXT
               50 {
                    text.field = title
                    fontSize = 12
                    fontFile = fileadmin/font/palabi.ttf
                    fontColor = #FFFFFF
                    offset = 10, 15
                    niceText = 0
                    transparentBackground = 1
           }
                30 >
      }
}    

     2 = TMENU
     2 {
          IProcFunc = user_menu->secondLevel
          lockPosition = x
          expAll = 1
          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.user_menu = USER
temp.user_menu.userFunc = user_menu->menuEnd
..............
#####################################################################
##LAYERMENU###########################################################
#####################################################################
     marks.MENU = COA
     marks.MENU {
     10 < temp.ypMenu
     20 < temp.user_menu
     }

thxs
speda

michlbeck ·

hi,
normal steht der letzte teil deines codes unter PAGE.10...

page.10{
     template = FILE
     template.file = fileadmin/templates/style2/template.htm
     workOnSubpart = DOKUMENT
 
     marks.MENU = COA
     marks.MENU {
     10 < temp.ypMenu
     20 < temp.user_menu
     }
}