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 Extension cbstarter Version 1.3.2 Released
TYPO3, comments and Gravatar via Acqal's extension comments_gravatar
Sunday at T3BOARD09 in Laax, Switzerland
Not Good, Not Bad, Just Different
Increase TYPO3 Workspace Relation Limits
Looking into TYPO3 Webhosting?
Getting Help With TYPO3
Blog Topics
Michael on Twitter

Virgil on Twitter

Nicole on Twitter

Recent Blog Posts
Create a simple "Contact Us" mail form in TYPO3
Configure TYPO3 for Localized Websites
TYPO3 in 2010, Join the TYPO3 Association, and Get Involved
TYPO3 Association Quarterly Report 2009-12-14
Prepare cPanel/WHM and Ruby for Redmine: A Walk-Through
TYPO3 Acqal log_analyzer and difference_viewer Extensions
TYPO3, Marketing and the English Language
TYPO3 Tips and Tricks - Mass Copy and Move
Add META Abstract & Author to seo_basics
More TYPO3 Goodies
Blog Archives
Connect With Acqal
- Acqal on Delicious
- Acqal on Digg
- Acqal on Facebook
- Acqal on Twitter
- Fave Acqal on Technorati
Subscribe to blog RSS-
Want to share your TYPO3 advice with the Acqal community? Submit guest post ideas.
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 hosting, 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 field