Zum Inhalt springen

erstes Bild in GMENU_FOLDOUT fehlt

Erstellt am 26. Juli 2006 · 2 Antworten · letzte Antwort am 2. August 2006

Tags: Frage

obelski ·

Hallo Forum.

Erst mal die Eckdaten:

  • typo3: Version 4.0
    server: IIS 6.0
    typo3 Erfahrung: knapp 2 Wochen

Ich hab ein GMENU_FOLDOUT erstellt und dabei nun folgende Probleme:
1. Das erste Hintergrundbild des Menus wird nicht angezeigt, resp. ist weiss (?)
2. RO funzt nicht, auch CUR und ACT schon verschiedentlich ausprobiert, ohne Erfolg.
3. Das Submenu sollte geöffnet bleiben wenn ein Sublink geklickt wird.
4. Der ACT (oder CUR?) Zustand der Ebene 1 soll bestehen bleiben wenn das Menu ausgeklappt wird.

Bemerkungen: Ich hab ein ähnliches Menu mit der Version 3.8.1 erstellt, wo alles ausser Punkt 3 + 4 bestens funktioniert hat.

Ich habe keine Ahnung wo die Probleme liegen und nach x-Stunden Forum durchforsten, Bücher lesen, Tuts analysieren auch keine Lösung gefunden. (*KOPFSCHMERZ*)

Hier mein Code:

seite = PAGE
seite {
typeNum = 0
bodyTag = <body style="margin-left:17; margin-top:0; background-image:url(fileadmin/ce_Bilder/hintergrund.jpg)">
#stylesheet = fileadmin/ce-markt_vorlagen/ce-styles.css
includeLibs.gmenu_foldout = typo3/sysext/cms/tslib/media/scripts/gmenu_foldout.php
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/ce_Templates/Tabellenlayout_Basis2_01.htm
10.workOnSubpart = DOKUMENT
10.marks {
  INHALTE = CONTENT
  INHALTE {
    table = tt_content
    select.orderBy = sorting
    select.where = colPos=0
   }
  DETAILS = CONTENT
  DETAILS {
    table = tt_content
    select.orderBy = sorting
    select.where = colPos=2
    }
  MENUL = HMENU
  MENUL.1 = GMENU_FOLDOUT
  MENUL.1.expAll = 1
  MENUL.1.collapse = 1
  MENUL.1 {
    dontLinkIfSubmenu = 1
    foldSpeed = 6
    subMenuOffset = 0, 25
    menuOffset = 17, 180
    menuWidth = 164
    bottomContent = TEXT
    bottomContent.value = ein Text
    }
  MENUL.1.NO {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontSize = 10
    10.iterations = 4
    10.fontColor = #F7E85B || #19338F || #F7E85B || #19338F || #F7E85B || #19338F
    10.offset = 10, 18
    10.niceText = 1
    wrap = | <br />
    5 = IMAGE
    5.file = fileadmin/ce_Bilder/Pfeil_mittellblau.jpg || fileadmin/ce_Bilder/Pfeil_hellblau.gif || fileadmin/ce_Bilder/Pfeil_mittelblau.jpg || fileadmin/ce_Bilder/Pfeil_hellblau.gif || fileadmin/ce_Bilder/Pfeil_mittelblau.jpg || fileadmin/ce_Bilder/Pfeil_hellblau.gif
    }
  MENUL.1.CUR = 1
  MENUL.1.CUR {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontSize = 10
    10.iterations = 4
    10.fontColor = #F7E85B
    10.offset = 10, 18
    10.niceText = 1
    5 = IMAGE
    5.file = fileadmin/ce_Bilder/Pfeil_dunkelblau.jpg
  }
  MENUL.1.RO < MENUL.1.CUR
  MENUL.1.RO = 1
  MENUL.2 = GMENU
  MENUL.2.stayFolded = 1
  MENUL.2.NO {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontSize = 10
    10.fontColor = #19338F
    10.iterations = 4
    10.offset = 10, 15
    10.niceText = 1
    linkWrap = <br/>
    5 = IMAGE
    5.file = fileadmin/ce_Bilder/Pfeil_dunkelgelb.gif || fileadmin/ce_Bilder/Pfeil_gelb.gif || fileadmin/ce_Bilder/Pfeil_dunkelgelb.gif || fileadmin/ce_Bilder/Pfeil_gelb.gif || fileadmin/ce_Bilder/Pfeil_dunkelgelb.gif || fileadmin/ce_Bilder/Pfeil_gelb.gif 
    }
  #ende marks
  }
#ende seite
}

Irgendwer eine Idee? Hinweis? Ratschlag? Kopfschmerztablette?

obelski ·

Hi nochmal.

Also folgendes:

  • 1. = war ein dummer Tippfehler :o

  • 2. Das mit den Zuständen muss ich mir nochmals verinnerlichen. Hab den unterschied zwischen CUR und ACT noch nicht ganz begriffen #paralyzed#

  • 3. Wie krieg ich das hin dass die Ebene 1 geöffnet bleibt wenn ein Link der Ebene 2 gewählt wurde?? #angry#

  • 4. gehört eigentlich zu Punkt 2. Ich will erreichen dass ein anderes Hintergrundbild verwendet wird wenn das Menu aufgeklappt ist...

Kennt jemand ne Lösung?

obelski ·

So, nun hab ich erreicht was ich wollte. Deshalb Poste ich hier nochmals das Setup für alle die auch mal etwas in diesem Stile erstellen wollen.

Ich würde ja gerne ein Bild posten um zu demonstrieren wie es aussehen soll, aber das geht hier wohl ned 🙁

Also nur der TS Code:

seite = PAGE
seite {
typeNum = 0
bodyTag = <body style="margin-left:17; margin-top:0; background-image:url(fileadmin/ce_Bilder/hintergrund.jpg)">
stylesheet = fileadmin/ce_Templates/ce_styles.css
includeLibs.gmenu_foldout = typo3/sysext/cms/tslib/media/scripts/gmenu_foldout.php
10 = TEMPLATE
10.template = FILE
10.template.file = fileadmin/ce_Templates/Tabellenlayout_Basis2_01.htm
10.workOnSubpart = DOKUMENT
10.marks {
  INHALTE = CONTENT
  INHALTE {
    table = tt_content
    select.orderBy = sorting
    select.where = colPos=0
   }
  DETAILS = CONTENT
  DETAILS {
    table = tt_content
    select.orderBy = sorting
    select.where = colPos=2
    }
  MENUL = HMENU
  MENUL.excludeUidList = 20, 21
  MENUL.1 = GMENU_FOLDOUT
  MENUL.1 {
    expAll = 1
    collapse = 1
    displayActiveOnLoad = 1
    foldSpeed = 6
    subMenuOffset = 0, 25
    menuOffset = 17, 180
    menuWidth = 164
    bottomContent = TEXT
    bottomContent.value = ein Text
    }
  MENUL.1.NO = 1
  MENUL.1.NO {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontFile = fileadmin/ce_Templates/ariblk.ttf
    10.fontSize = 10
    10.fontColor = |*| #F7E85B || #19338F |*|
    10.offset = 10, 16
    10.niceText = 1
    5 = IMAGE
    5.file = |*| fileadmin/ce_Bilder/Pfeil_mittelblau.jpg || fileadmin/ce_Bilder/Pfeil_hellblau.gif |*| 
    }
  MENUL.1.RO = 1
  MENUL.1.RO {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontFile = fileadmin/ce_Templates/ariblk.ttf
    10.fontSize = 10
    10.fontColor = #F7E85B
    10.offset = 10, 16
    10.niceText = 1
    5 = IMAGE
    5.file = fileadmin/ce_Bilder/Pfeil_dunkelblau.gif
    }
  MENUL.1.ACT = 1
  MENUL.1.ACT{
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontFile = fileadmin/ce_Templates/ariblk.ttf
    10.fontSize = 10
    10.fontColor = #F7E85B
    10.offset = 10, 16
    10.niceText = 1
    5 = IMAGE
    5.file = fileadmin/ce_Bilder/Pfeil_dunkelblau.gif    
    }
  MENUL.2 = GMENU
  MENUL.2.NO = 1
  MENUL.2.NO {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontFile = fileadmin/ce_Templates/ariblk.ttf
    10.fontSize = 10
    10.fontColor = #19338F
    10.offset = 20, 15
    10.niceText = 1
    5 = IMAGE
    5.file = |*| fileadmin/ce_Bilder/Pfeil_dunkelgelb.gif || fileadmin/ce_Bilder/Pfeil_gelb.gif |*|
    }
  MENUL.2.RO = 1
  MENUL.2.RO {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontFile = fileadmin/ce_Templates/ariblk.ttf
    10.fontSize = 10
    10.fontColor = #F7E85B
    10.offset = 20, 15
    10.niceText = 1
    linkWrap = <br />
    5 = IMAGE
    5.file = fileadmin/ce_Bilder/Pfeil_orange.gif
    }  
  MENUL.2.ACT = 1
  MENUL.2.ACT {
    XY = 164, 25
    10 = TEXT
    10.text.field = title
    10.fontFile = fileadmin/ce_Templates/ariblk.ttf
    10.fontSize = 10
    10.fontColor = #F7E85B
    10.offset = 20, 15
    10.niceText = 1
    5 = IMAGE
    5.file = fileadmin/ce_Bilder/Pfeil_orange.gif
    }
  #ende marks
  }
#ende seite
}

Das Menu macht folgendes:

  • Beim Klick auf Ebene 1 öffnet sich die Ebene 2 (GMENU_FOLDOUT)

  • Beim Klick auf Ebene 1 schliesst sich die ausgeklappte Ebene 2 wieder, also nur 1 ausgeklapptes Menu

  • Die Links und Sublinks verwenden abwechslungsweise ein anderes HG-Bild und Textfarbe

  • Der Aktive Link verwendet ein anderes HG-Bild als der Standard, dasselbe wie beim Rollover

  • Auch wenn man auf einen Sublink klickt, bleibt die Ebene 1 ausgeklappt