[TYPO3-commerce] Subcategories in a seperated menu
Jeroen Visser
jeroen at roquin.nl
Tue Nov 13 11:35:12 CET 2007
Hello Eef,
You can make your categorie menu dynamic by using itemArrayProcFunc see
the thread "Building navigation menu using itemArrayProcFunc".
Make sure you have a parent categorie for example "Catalog" with one
subcat for example "Subcat needed for categories". This title will be
overwritten by the $menuArr.
I have send the php and typoScript, which works for me, along with the
last message.
Hope this will help you.
Greetings,
Jeroen
H.E.Weenink | Aristo WebDesign wrote:
> Hello Ricardo,
>
> Thanks for your answer. But how to make it dynamic? So it uses actual catuid
> of CategoryMenu?
>
> Eef
>
> -----Oorspronkelijk bericht-----
> Van: typo3-project-commerce-bounces at lists.netfielders.de
> [mailto:typo3-project-commerce-bounces at lists.netfielders.de] Namens Ricardo
> Mieres
> Verzonden: maandag 12 november 2007 12:16
> Aan: typo3-project-commerce at lists.netfielders.de
> Onderwerp: Re: [TYPO3-commerce] Subcategories in a seperated menu
>
> 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
>> }
>>
> _______________________________________________
> 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