[TYPO3-german] GMENU Problem

Nadja Macht ich at nadjamacht.de
Tue Feb 27 16:11:54 CET 2007


Hey,

unfortunately I`ve got a problem with the setup of a gmenu.
I want to wrap span tags between the a and the image tag,
but i can´t find any wrapping method that fits.

The html result schould look like this:

<ul id="nav">     
      <li class="active">
               <a href="">
                 <span class="rtop">
                  <span class="ltop">
                       <img src=""... />
                  </span>
                 </span>
                </a>        
           <ul>         
              <li><a href="">Item1.1</a></li>
              <li><a href="">Item 1.2</a></li>
           </ul>      
      </li>
      <li>
             <a href="">
                 <span class="rtop">
                  <span class="ltop">
                       <img src=""... />
                  </span>
                 </span>
                </a>        
         <li>
</ul>


TS:

lib.main_menu = HMENU
lib.main_menu.1 = GMENU
lib.main_menu.1.wrap = <ul id="nav">|</ul>
lib.main_menu.1 {  
  expAll=1
  noBlur = 1  
  NO {
 allWrap = |*||*| <li>|</li> || <li class="last">|</li>
 #allWrap = <li>|</li>
 XY = 100,26
 transparentBackground = 1
 #wrap=<span class="rtop"><span class="ltop">|</span></span>
        10 = TEXT
        10.text.field = title
        10.fontFile = fileadmin/templates/fonts/EXPERTSR.TTF
        10.fontSize = 14
        10.offset = 0,18
        10.transparentBackground = 1
        10.fontColor = #555555
        10.align = center
        
   }
 
  ACT < .NO
  ACT = 1
  ACT {
 ACT.LITagParams=class="active"  
  }
  
  RO < .ACT 
  RO = 1
  RO {
 RO.LITagParams=class="active" 
  }
  
  FSUBRO < .RO
  IFSUBRO = 1
   
  IFSUB < .NO
  IFSUB = 1
  IFSUB.allWrap =  <li>|
  
  ACTIFSUB < .NO
  ACTIFSUB = 1
  ACTIFSUB.allWrap =  <li class="active">|
  ACTIFSUB.ATagParams=class="active" 
  ACTIFSUB.20.fontColor= #676767
  
  
} 

lib.navi.2 = GEMENU
lib.navi.2.wrap = <ul>|</ul></li>
lib.navi.2 {
  expAll = 1
  noBlur = 1 
  NO.ATagTitle.field = title
  NO.allWrap = <li>|</li> 
  
  ACT < .NO
  ACT = 1
  ACT.ATagParams=
  
}



anybody out there to bail me out?
regards,
nadja


More information about the TYPO3-german mailing list