[TYPO3-commerce] Extend menu with categories

Stefan Wimmer stefan at farsite.de
Tue Oct 2 16:44:45 CEST 2007


Hi Jeroen,

I think I had that problem 5 months ago and solved it with a custom solution
which I also posted here http://bugs.typo3.org/view.php?id=5545
To view a working example of the menu see http://www.velophil.biz The site
itself has not been finished yet, so don't look too closely.

Greets Stefan

> -----Original Message-----
> From: typo3-project-commerce-bounces at lists.netfielders.de
> [mailto:typo3-project-commerce-bounces at lists.netfielders.de] On Behalf
> Of Jeroen Visser
> Sent: Dienstag, 2. Oktober 2007 16:17
> To: TYPO3-Commerce
> Subject: [TYPO3-commerce] Extend menu with categories
> 
> Hello,
> 
> Does anyone has some experience with adding the categories, made in
> commerce, to a page menu item? For example the menu should look like
> this:
> 
> START  ABOUT  PRODUCTS  CONTACT
>                cat1
>                cat2
>                cat3
> 
> It is a horizontal menu. I've found a example that first gets the
> categories to and adds them to the menu. I have got this working with a
> vertical menu.
> In my TV template I have mapt on "lib.topmenu"
> I hope someone could help me out. Below the TS, with the temp.catmenu
> coming from a example.
> 
> 
> temp.catmenu = HMENU
> temp.catmenu {
>    special = userfunction
>    special.userFunc = user_tx_commerce_catmenu_pub->init
>    special {
>      category = {$plugin.tx_commerce_lib.catUid}
>      showProducts = 1
>      overridePid = {$plugin.tx_commerce_lib.overridePid}
>    }
> 
>    1 = TMENU
>    1 {
>      wrap = <ul class="mainmenu">|</ul>
>      itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
>      expAll = 1
>      noBlur = 1
>      NO.wrapItemAndSub = <li>|</li>
>      ACT = 1
>      ACT.wrapItemAndSub = <li>|</li>
> //    ACT.ATagTitle.field = subtitle // title
> //   ACT.ATagParams = class="act"
> //    ACT.stdWrap.htmlSpecialChars = 1
> //    ACT.doNotLinkIt = 1
>    }
> 
>    2 < .1
>    3 < .1
> }
> 
> /* MY MENU */
> lib.topmenu = HMENU
> lib.topmenu.excludeUidList = 347
> lib.topmenu.special = directory
> lib.topmenu.special.value = 347
> lib.topmenu.1 = TMENU
> lib.topmenu.1 {
>          itemArrayProcFunc = user_act
> 	wrap = <ul class="level1">|</ul>
> 	expAll = 1
> 	NO {
> 		allWrap = <li>|</li>
> 	}
>    2 < .1
>    3 < .1
> }
> 
> # Vanaf PID 404 (Catalogus) subcategorieën toevoegen
> [PIDinRootline = 404]
> lib.topmenu.1 {
>    ACT {
>      after.cObject = HMENU
>      after.cObject < temp.catmenu
>    }
> }
> 
> Thanks in advance.
> 
> Regards,
> Jeroen
> 
> 
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-
> commerce



More information about the TYPO3-project-commerce mailing list