[TYPO3] Hardcoding menu items - best practice

Tyler Kraft headhunterxiii at yahoo.ca
Mon Apr 9 18:36:16 CEST 2007


just include them on the wrap for the hmenu part.



Trevor McCartney wrote:
> Hello There,
> 
> I'm working on a Typo installation that has three levels of menu's. On the
> third level, I need two menu items that point to forms, these two menu items
> should appear on every page. Do I need to create dummy pages all through the
> page tree to include these two pages into the sub-menu, or is there a way to
> hardcode the two menu items in my template object along with their links?
> 
> This is how I've coded that menu:
> 
> lib.subMenu2 = HMENU
> lib.subMenu2.entryLevel = 2
> lib.subMenu2.1 = TMENU
> lib.subMenu2.1.NO {
> allWrap = <div> | </div>
> }
> 
> lib.subMenu2.1.ACT = 1
> lib.subMenu2.1.ACT {
> allWrap = <div class="selected"> | </div>
> }
> 
> Thanks!
> 
> T.
> 


More information about the TYPO3-english mailing list