We Recommend

Smarty PHP Template Programming And Applications Smarty PHP Template Programming And Applications
Smarty is a templating engine for PHP. Designers who are used to working with HTML files can work with Smarty templates, which are HTML files with simple tags while programmers work with the underlying PHP code. The Smarty engine brings the code and templates together. The result of all this is that designers can concentrate on designing, programmers can concentrate on programming, and they don't need to get in each others way so much.


Posted By

gerhardsletten on 12/08/07


Tagged

typo3


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

heinz1959


2 level menu in typo3


Published in: Other 


Put this in your template.


  1. # ------------------------
  2. # Meny level 1
  3. # ------------------------
  4.  
  5. # Menu 1 cObject
  6. lib.mainMenu = HMENU
  7. lib.mainMenu.1.wrap = <ul>|</ul>
  8. # First level menu-object, textual
  9. lib.mainMenu.1 = TMENU
  10.  
  11. lib.mainMenu.1 {
  12. expAll = 0
  13. # Normal state properties
  14. NO.allWrap = <li> | </li>
  15. NO.stdWrap.htmlSpecialChars = 1
  16. # Enable active state and set properties:
  17. ACT = 1
  18. ACT.stdWrap.htmlSpecialChars = 1
  19. ACT.allWrap = <li class="selected"> | </li>
  20. }
  21. # Second level menu-object, textual
  22. lib.mainMenu.2 = TMENU
  23. lib.mainMenu.2.wrap = <ul>|</ul>
  24. lib.mainMenu.2 {
  25. # Normal state properties
  26. NO.allWrap = <li> | </li>
  27. NO.stdWrap.htmlSpecialChars = 1
  28. # Enable active state and set properties:
  29. ACT = 1
  30. ACT.stdWrap.htmlSpecialChars = 1
  31. ACT.allWrap = <li class="selected"> | </li>
  32. }

Report this snippet 

You need to login to post a comment.