German  |  English
Search:
Sie sind hier: Tutorial Typo3 » Menü GMENU

Menü GMENU mit Hintergrundbild

Code TypoScript Template
  # Menü Grafik mit Hintergrundbild
  temp.menuG = HMENU
  temp.menuG.special = directory
  temp.menuG.special.value = 2              
  temp.menuG.1 = GMENU
  temp.menuG.1 {                            
    # link
    NO {
    wrap=<div>|</div>
    5 = IMAGE
    5.file.import.field=media
    5.file.import = uploads/media/
    5.file.import.listNum = 0
    transparentBackground = 1        
    XY = 120,20
    }        
    # rollhover
    RO < .NO
    RO = 1         
    RO.5.file.import.field=media
    RO.5.file.import = uploads/media/
    RO.5.file.import.listNum = 1         
    # active link
    ACT < .NO
    ACT = 1        
    ACT.5.file.import.field=media
    ACT.5.file.import = uploads/media/
    ACT.5.file.import.listNum = 2
  }

  # 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

  # Substitute menuG
  subparts.menuG < temp.menuG

  }

Hintergrundbilder werden im Feld Files der Seiteneigenschaften geladen.
Mit der Angabe listNum = 0 wird das erste hochgeladene Bild angezeigt.

Code HTML-Template
// subpart menuG
<div id="menuG">
</div>