[TYPO3-german] Antw: Typo3 Menu - Obernavigtionspunkt ü ber Subnavigation darstellen

Katja Zinchenko Zinchenko at bsb-muenchen.de
Thu Oct 26 11:32:54 CEST 2006


ich habe es so:

karteireiter OBEN (aus dem netz-stichwort 'karteireiter'):
bildadressen in constants nicht vergessen!

temp.tabsmenu = COA
temp.tabsmenu {
  wrap = <div id="tabsmenu">|</div>
  10 = HMENU
  10.excludeUidList = 8,9,10,11,12,13,14,15,16,17
  10.1 = TMENU
  10.1 {
    NO {
      # Enabled if this menuitem is LEFT of the active menuitem
      before.cObject = IMAGE
      before.cObject.file = {$temp.tabsmenu.imagePath}{$temp.tabsmenu.leftImgNO} || {$temp.tabsmenu.imagePath}{$temp.tabsmenu.centerImgNO}
      before.cObject.wrap = <div class="img">|</div>
      before.cObject.if.isTrue.data = register:curUid
      before.cObject.if.negate = 1
       
      # Enabled if this menuitem is RIGHT of the active menuitem
      after.cObject = IMAGE
      after.cObject.file = {$temp.tabsmenu.imagePath}{$temp.tabsmenu.centerImgNO} |*||*| {$temp.tabsmenu.imagePath}{$temp.tabsmenu.rightImgNO}
      after.cObject.wrap = <div class="img">|</div>
      after.cObject.if.isTrue.data = register:curUid
      linkWrap = <div class="item">|</div>
      allWrap = |
    }
    ACT < .NO 
    # ERROR: Line 89: Object copied in this line "ACT < .NO" would leave either the value or properties untouched in TypoScript Version 1. Please check that this is not a problem for you.
    ACT = 1
    ACT {
      before >
      before.cObject = IMAGE
      before.cObject.file = {$temp.tabsmenu.imagePath}{$temp.tabsmenu.leftImgACT} || {$temp.tabsmenu.imagePath}{$temp.tabsmenu.centerLeftImgACT}
      before.cObject.wrap = <div class="img">|</div>
      #before.cObject.file = {$temp.tabsmenu.imagePath}{$temp.tabsmenu.leftImgACT} || {$temp.tabsmenu.imagePath}{$temp.tabsmenu.centerLeftImgACT}
      #before.cObject.if >
      #after.cObject.file =  {$temp.tabsmenu.imagePath}{$temp.tabsmenu.centerRightImgACT} |*||*| {$temp.tabsmenu.imagePath}{$temp.tabsmenu.rightImgACT}
      #after.cObject.if >
      after >
      after.cObject = IMAGE
      after.cObject.file = {$temp.tabsmenu.imagePath}{$temp.tabsmenu.centerRightImgACT} |*||*| {$temp.tabsmenu.imagePath}{$temp.tabsmenu.rightImgACT}
      after.cObject.wrap = <div class="img">|</div>
      linkWrap = <div class="item2">|</div>
      stdWrap.cObject = COA
      stdWrap.cObject {
        10 = TEXT
        10.field = title
        20 = LOAD_REGISTER
        20.curUid= 1
      }
    }
  }
  	# This part adds the closing image, which will be missing in cases where there's no active menuitem 
  20 = IMAGE
  20.file = {$temp.tabsmenu.imagePath}{$temp.tabsmenu.rightImgNO}
  20.wrap = <div class="img">|</div>
  20.if.isTrue.data = register:curUid
  20.if.negate = 1
}





// --- CSS STYLES start ----------------------
page.CSS_inlineStyle (
	#tabsmenu {background: #E1BF7A;height:28px;padding:5px 0px 0px 0px;}
	html > #tabsmenu {height:48px;}
	#tabsmenu .img,#tabsmenu .item,#tabsmenu .item2 {float: left;}
	#tabsmenu .item {background:#cc9933;}
	#tabsmenu .item2 {background:#FFFFFF;}
	#tabsmenu .item A,#tabsmenu .item2 A {padding: 0px 5px;line-height:28px; font-family: Verdana;font-weight:bold;font-size: .6em;text-decoration:none;}
	#tabsmenu .item A {color: #FFFFFF;}
	#tabsmenu .item2 A {color: #000000;}
	#tabsmenu .item A:hover,#tabsmenu2 .item A:hover {text-decoration:underline;}
)
// --- CCS STYLES end ------------------------


navigation LINKS:
temp.navigationNachFach = COA
temp.navigationNachFach.10 = HTML
temp.navigationNachFach.10.value = <table>
temp.navigationNachFach.20 = HMENU
temp.navigationNachFach.20 {
   entryLevel = 1
   1 = TMENU
   1 {  
     
      NO {
         allWrap = <tr> | </tr>
         linkWrap = <td class="nav"> | </td>    
      }

      ACT < .NO
      ACT.linkWrap = <td class="navactiv"> | </td>
      ACT = 1
      CUR < .ACT
      CUR {
        doNotLinkIt = 1       
      }
      CUR = 1
    }
   2 = TMENU   
   2 { 
      NO {
         allWrap = <tr> | </tr>
         linkWrap = <td class="nav">&nbsp;&nbsp; | </td>    
      }

      ACT < .NO
      ACT.linkWrap = <td class="navactiv">&nbsp;&nbsp; | </td>
      ACT = 1
      CUR < .ACT
      CUR {
        doNotLinkIt = 1       
      }
      CUR = 1
    }
   3  = TMENU   
   3 { 
      NO {
         allWrap = <tr> | </tr>
         linkWrap = <td class="nav">&nbsp;&nbsp;&nbsp;&nbsp; | </td>    
      }

      ACT < .NO
      ACT.linkWrap = <td class="navactiv">&nbsp;&nbsp;&nbsp;&nbsp; | </td>
      ACT = 1
      CUR < .ACT
      CUR {
        doNotLinkIt = 1       
      }
      CUR = 1
    }
 }
temp.navigationNachFach.30 = HTML
temp.navigationNachFach.30.value = </table>

Gruss,
Katja

>>> chris at mac-medien.de 26.10.2006 11:11 >>>
Hallo,
ich entwickle gerade eine Seite mit einem Navigations-L:
Oben die Hauptnavigation und links die Unternavigation. Jetzt würde ich
gerne den Obernavigtionspunkt in dem man sich gerade befindet zusätzlich
über der unternavigation Darstellen.


Skizze:
               -- Obernavi 1 -- Obernavi2 -- (OBERNAVI3) -- Obernavi4 --

+ (OBERNAVI3) +
- Subnavi 1 - 
- Subnavi 2 -
  (Subnavi 3)                 Content von Subnavi 3
- Subnavi 4 -
- Subnavi 5 -

Jeder verstanden?
Wie könnte man das denn realisieren?


Viele Grüße,
Chris

_______________________________________________
TYPO3-german mailing list
TYPO3-german at lists.netfielders.de 
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german



More information about the TYPO3-german mailing list