
| Author | Message |
|---|---|
|
Written on: 14. 10. 2009 [14:45]
|
|
|
sven_hom
Sven Homrighausen
Topic creator
registered since: 13.10.2009
Posts: 5
|
Hi folks, I would like to know if I can highlight an active product category in my category menu. This is the TypoScript I'm using to generate a 2-level category menu: TYPOSCRIPT includeLibs.user_tx_fbmagento_navigation = EXT:fb_magento/lib/class.tx_fbmagento_navigation.php lib.magento_catnavi = HMENU lib.magento_catnavi{ special = userfunction special{ userFunc = user_tx_fbmagento_navigation->categories pid=3 startcategory=0 } expAll = 0 1 = TMENU 1 { #itemArrayProcFunc = user_tx_fbmagento_navigation->clear wrap = <ul>|</ul> noBlur = 1 expAll = 1 wrap = <ul id="sub-level1">|</ul> NO { wrapItemAndSub = <li class="first">|</li> |*|<li>|</li> |*| <li class="last">|</li> } ACT < .NO ACT = 1 ACT.wrapItemAndSub = <li class="active">|</li> } 2 = TMENU 2 < .1 } And now I would like to set the actually chosen category to active with a css-class "active". Any solution for that? Thanks in advance, Sven |
|
Written on: 18. 10. 2009 [13:13]
|
|
|
hackwell
Jörg
Developer
registered since: 13.10.2009
Posts: 18
|
Look at this: TYPOSCRIPT includeLibs.user_tx_fbmagento_navigation = EXT:fb_magento/lib/class.tx_fbmagento_navigation.php lib.magentonavi = COA_INT lib.magentonavi.10 = HMENU lib.magentonavi.10 { wrap = <h1>Shop-Categories</h1>| special = userfunction special { userFunc = user_tx_fbmagento_navigation->categories pid = 15 startcategory = 3 } expAll = 0 1 = TMENU 1 { itemArrayProcFunc = user_tx_fbmagento_navigation->clear wrap = <ul style=“text-align: left“>|</ul> noBlur = 1 expAll = 1 wrap = <ul id=“sub-level1“>|</ul> NO { wrapItemAndSub = <li class=“first“>|</li> |*| <li>|</li> |*| <li class=“last“>|</li> } ACT = 1 ACT { wrapItemAndSub = <li class=“first active“>|</li> |*| <li class="active">|</li> |*| <li class=“last active“>|</li> } } 2 < .1 } it is important to set a COA_INT around your Menu, because of Caching |
|
Written on: 19. 10. 2009 [08:17]
|
|
|
sven_hom
Sven Homrighausen
Topic creator
registered since: 13.10.2009
Posts: 5
|
Thanks for your help, but that doesn't work for me. Do I have to use the latest version of typogento to do this? |
|
Written on: 20. 10. 2009 [14:27]
|
|
|
hackwell
Jörg
Developer
registered since: 13.10.2009
Posts: 18
|
Yes of course |
|
Written on: 20. 10. 2009 [15:26]
|
|
|
sven_hom
Sven Homrighausen
Topic creator
registered since: 13.10.2009
Posts: 5
|
Ok, thanks a lot. It works. By the way: Thanks for that great extension. Nochmals Danke und viele Grüße, Sven |