[Typo3] Top menu level2 problem

Marko Rosic roske at mainstream.co.yu
Wed Aug 24 13:39:43 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hm, I still have this problem. Here is what is going on.

This is a first level page with no top menu...
http://www.deus.co.yu/index.php?id=1
Here is a second level page with top menu...
http://www.deus.co.yu/index.php?id=14

I need this top menu on both pages. Please help... it's urgent and
frustrating as well. I've tried everything I could think of... only thing I
did was optimize the code.

Basic template setup

# Default PAGE object:
page = PAGE
page.typeNum = 0
# Copying the content from TEMPLATE for <body>-section:
page.10 < temp.mainTemplate
# Copying the content from TEMPLATE for <head>-section:
page.headerData.10  < temp.headTemplate

...


ext: Sidebar

# Sidebar cObject

temp.sidebar = COA
temp.sidebar {
  10 = HMENU
  # First level menu-object, textual
  10.1 = TMENU
  10.1 {
    noBlur = 1
    wrap = <img id="top" src="fileadmin/templates/main/images/nav_top.gif"
width="202" height="4" /><ul> | </ul><img id="bottom"
src="fileadmin/templates/main/images/nav_bottom.gif" alt="" width="202"
height="4" />

    # Normal state properties
    NO {
      allWrap = <li> | </li>
      stdWrap.htmlSpecialChars = 1
      ATagTitle.field = description // title
    }

    CUR = 1
    CUR {
      allWrap = <li><span> | </span></li>
      stdWrap.htmlSpecialChars = 1
      doNotLinkIt = 1
    }
  }
  10.2 < 10.1
  10.3 < 10.1
  10.4 < 10.1
  10.5 < 10.1

  20 = PHP_SCRIPT
  20.file = media/scripts/languageMenu.php
}

ext: Header

temp.header = COA
temp.header {
  10 = TEXT
  10 {
    value = {page:title}
    insertData = 1
    wrap = <h1> | </h1>
  }

  20 = HMENU
  20.entryLevel = 1
  20.1 = TMENU
  20.1 {
    noBlur = 1    
    wrap = <ul> | </ul>

    NO {
    allWrap = <li> | </li>
    stdWrap.htmlSpecialChars = 1
    }

    CUR = 1
    CUR < .NO
  }
}

Best regards,
Marko

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDDFyExi9Zamgre8gRAtLKAKCVHhMWwafE+230aCn4n87W6aB8ugCgsS++
eG3TYqY+9Kruyi3kiqNN/bU=
=ciBl
-----END PGP SIGNATURE-----



More information about the TYPO3-english mailing list