[TYPO3-UG Denmark] tuturial template building part 2 menu?

Jakob Ellerbæk ellerbaek_nospam at stofanet.dk
Thu Feb 23 17:02:05 CET 2006


# Menu 1 cObject
temp.menu_1 = HMENU
  # First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level1-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level1-act"> | </div>
}
  # Second level menu-object, textual
temp.menu_1.2 = TMENU
temp.menu_1.2 {
    # Normal state properties
  NO.allWrap = <div class="menu1-level2-no"> | </div>
    # Enable active state and set properties:
  ACT = 1
  ACT.allWrap = <div class="menu1-level2-act"> | </div>
}

# ------------------------

# Menu 2 cObject - horizontal, one-level menu

# ------------------------


temp.menu_2 = HMENU

   # Setting the entryLevel to be subpages to CURRENT page:
temp.menu_2.entryLevel = -1


   # First level menu-object, textual
temp.menu_2.1 = TMENU
temp.menu_2.1 {
   # Normal state wrapping with alternating wrap-values (see "optionSplit")
NO.allWrap =  |*|   <td>|</td>  ||  <td class="oddcell">|</td>   |*|
     # Enable active state and set properties:
   ACT = 1
   ACT.allWrap = <td class="menu2-level1-act"> | </td>
 }

# ------------------------

# Path menu cObject

# ------------------------



temp.path = HMENU

  # Setting the special property to "rootline" - this will produce a 
"Path-menu"

temp.path.special = rootline


   # First level menu-object, textual

Hej søren har har du koden. Håber det er det du skal bruge.
Tak

temp.path.1 = TMENU

   # Wrapping value for the whole menu:

temp.path.1.wrap = Path: &nbsp; |

temp.path.1 {

     # Normal state properties appending " > " to all elements but the last 
one.

     # (See "optionSplit")

   NO.allWrap =   |&nbsp;&gt;&nbsp; |*||*|   |

 }
"Søren Vedel" <sv at workhouse.com.br> skrev i en meddelelse 
news:mailman.1.1140709218.30070.typo3-ug-denmark at lists.netfielders.de...
> Hej Jakob,
>
> Hvordan ser dit typoscript ud?
>
> MVh
> Søren Vedel
>
>
> Jakob Ellerbæk wrote:
>> Hej allesammen.
>> Jeg er ret ny med typo3. Jeg har gennemgået kom igang og modern template 
>> buiding part 1. Nu har jeg imidlertid et problem. Er det ikke meningen at 
>> menuen i template_2 skal vise de sider man oprettet? Den  horisontale 
>> menu i template_1 virker fint. Alt virker fint lige pånær den vertikale 
>> menu? Hvad kan jeg have gjordt forkert?
>>
>> Med venlig hilsen
>>
>> Jakob 





More information about the TYPO3-UG-denmark mailing list