[Typo3] TMENU aTagParam class for parent menu item
Lyle E. Dodge
lyle.dodge at wwc.edu
Sun Jul 3 11:59:05 CEST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there,
I have a fairly simple <ul> based menu system. It works well, however,
I need to add class="x" to only the parent items that have children.
Example Page Tree:
Services
Consulting
Development
Training
Products
Generic eWare
Order Online
Contact
Login
In this example only "Services" and "Products" should have class=x added
to their a tag. I know of aTagPrams but something is wrong with my
implementation.
Working TypoScript:
1: lib.Menu = HMENU
2: ### First Level Menuitems
3: lib.Menu.entryLevel = 0
4: lib.Menu.1 = TMENU
5: lib.Menu.1 {
6: expAll = 1
7: wrap = <ul>|</li></ul>
8: NO.allWrap = <li>|
9: }
10:
11: ### Second Level Menuitems
12: lib.Menu.2 = TMENU
13: lib.Menu.2 {
14: expAll = 1
15: wrap = <ul>|</ul></li>
16: NO.allWrap = <li>|</li>
17: }
What should I add, assuming around line 10, so that only Products and
Services (parents with children) gets the added class="x" attribute?
Thanks,
- --
Lyle E. Dodge lyle.dodge at wwc.edu
Walla Walla College Web Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCx7bpmhQFf7/9+dcRAvwpAJ0ZK9ocjMLsj0GYJIUqMvi0nPdE4ACgveBb
Wsi3tnOe2PE6PrxpKjKzY3A=
=6yBB
-----END PGP SIGNATURE-----
More information about the TYPO3-english
mailing list