[TYPO3-commerce] Subcategories in a seperated menu
Ricardo Mieres
rmieres at web-factory.de
Mon Nov 12 12:16:10 CET 2007
H.E.Weenink | Aristo WebDesign wrote:
> Dear People, I have commece running and categories show in a nice menu,
> with many thanks to you all.
> Next step is to show subcategories on a different place on the screen. When
> doing pages-menus I would use entrylevel to get rid of toplevel. but....
> this does not work on userfunc menu. How to get this done. Below the
> typoscript (I use TV) what I used uptill now, but the SubCategoryMenu keeps
> showing ALL categories. Is it possible to feed the SubCategoryMenu with
> information of the CategoryMenu or something like that?
> Must be a problem some of you allready solved before. Please help, Regards,
> Eef
>
> # Shopmenu (Grundeinstellungen)
> lib.CategoryMenu = HMENU
> lib.CategoryMenu {
> 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>
> }
> }
>
> lib.SubCategoryMenu = HMENU
> lib.SubCategoryMenu {
> special = userfunction
> special.userFunc = user_tx_commerce_catmenu_pub->init
> special {
> category = {$plugin.tx_commerce_lib.catUid}
Hi,
In the configuration of the subcategory you have to select another
category UID, it must be a subcategory.
> 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>
> }
>
> 2 < .1
> 3 < .1
> }
>
More information about the TYPO3-project-commerce
mailing list