Subscribe to Acqal
Got Thoughts? Write Us!
Approved TYPO3 Agency
Acqal is an approved TYPO3 agency focusing on support, training and website migration.
This means that we...
- are available on TYPO3.org
- make substantial contributions to TYPO3 teams
- are registered as business members of the TYPO3 Association
- have completed more than four TYPO3 projects
- have proven our technical abilities with quality TYPO3 extensions
- use TYPO3 for our own website
Popular Blog Posts
Tech Tuesday Went Snowboarding at T3BOARD09
TYPO3 and Other Open Source WCM Systems Dissed Again
Automatic tt_news META descriptions via Acqal's extension aqnewsmeta
TYPO3, comments and Gravatar via Acqal's extension comments_gravatar
TYPO3 Extension cbstarter Version 1.3.2 Released
Sunday at T3BOARD09 in Laax, Switzerland
Not Good, Not Bad, Just Different
Increase TYPO3 Workspace Relation Limits
Getting Help With TYPO3
Looking into TYPO3 Webhosting?
Blog Topics
Virgil on Twitter

Recent Blog Posts
US Political Campaign Websites - The Basics
My Talk at T3CON10 Dallas - TYPO3 User jobs and Tasks
Dallas Barbeque Joint Reviews
T3CON10 Dallas
Acqal is Going Through Some Changes
Creating a MySQL Database for TYPO3 using CPanel
Acqal Promotes Biking and Families with World Vision
It's Official T3CON10-Dallas Web Site Launched! Join Us!
Create a simple "Contact Us" mail form in TYPO3
Configure TYPO3 for Localized Websites
Blog Archives
Create a Menu Section Header with TypoScript
In the name of usability, it's extremely helpful to keep website users informed of where they are on a website. Frequently, this "where am I" functionality is handled by a breadcrumb, but you can also use section headers to provide similar capability.
The TypoScript that follows, put into your TypoScript template Setup section, performs two functions. The first, lib.nav.sub.header, is to create the section header. The second, lib.nav.sub, incorporates lib.nav.sub.header into the submenu for the section in which a user is located.
When you're ready to insert the submenu, use lib.nav.sub in your TemplaVoila Data Structure XML or TypoScript Setup.
lib.nav.sub.header = HMENU
lib.nav.sub.header {
special = rootline
special.range = 1|1
wrap = <li id="title">|</li>
1 = TMENU
1 {
NO {
doNotLinkIt = 0
ATagTitle.field = description // title
stdWrap.htmlSpecialChars = 1
}
}
}
lib.nav.sub = COA
lib.nav.sub {
wrap = <div id="submenu"><ul>|</ul></div>
10 < lib.nav.sub.header
20 = HMENU
20 {
entryLevel = 1
1 = TMENU
1 {
NO {
wrapItemAndSub = <li>|</li>
ATagTitle.field = description // title
stdWrap.htmlSpecialChars = 1
}
CUR < .NO
CUR = 1
CUR {
wrapItemAndSub = <li id="active">|</li>
doNotLinkIt = 1
}
}
2 < .1
2.wrap = <ul>|</ul>
3 < .2
4 < .2
}
}
Reference
Keywords:
- menu,section header,typoscript,typo3,hmenu
Acqal Corporation is an approved TYPO3 agency with over 40 years of Internet experience. Acqal offers you TYPO3 support, TYPO3 templates and TYPO3 training and tutorials.
Please subscribe to Acqal Newsletter and Acqal Blogging via Email or RSS Feed
.
© 2009 Acqal Corporation. All Rights Reserved.


Add comment
* - required fieldis what I was looking for :)
gRTz Jacco
Semantically this is perhaps better :
Thus the code will become :