New snippets section
The snippets section moved to docs.typo3.org on 9th February 2017.

You can easily search for and create new snippets on https://docs.typo3.org/typo3cms/Snippets/.

pulldown menu

Author Tags Category Date
larsmessmer

6 snippets

menu typoscript July 22, 2008

simple pulldown menu (old fashion)

  1. temp.pulldownmenu = COA
  2. temp.pulldownmenu {
  3. 10 = HMENU
  4. 10.special = directory
  5. 10.special.value = 1 // your rootpage pid
  6. 10.wrap = <form name="pulldownmenu" action=""><select name="pulldownmenu" onChange="window.location='index.php?id='+value" class="pulldownmenu">|</select></form>
  7. 10.1 = TMENU
  8. 10.1 {
  9. expAll = 1
  10. NO {
  11. allWrap = <option value="{elementUid}">|</option>
  12. subst_elementUid = 1
  13. doNotLinkIt = 1
  14. }
  15. CUR < .NO
  16. CUR = 1
  17. CUR.allWrap = <option value="{elementUid}" "selected="selected">|</option>
  18. }
  19. 10.2 = TMENU
  20. 10.2 {
  21. expAll = 1
  22. NO {
  23. allWrap = <option value="{elementUid}">&nbsp;&nbsp;&nbsp;&nbsp;|</option>
  24. subst_elementUid = 1
  25. doNotLinkIt = 1
  26. }
  27. CUR < .NO
  28. CUR = 1
  29. CUR.allWrap = <option value="{elementUid}" "selected="selected">&nbsp;&nbsp;&nbsp;&nbsp;|</option>
  30. }
  31. }