[TYPO3-commerce] Category menu with image

Igor Pstyga optibox at gmail.com
Tue May 22 12:07:57 CEST 2007


Igor Pstyga wrote:
> Igor Pstyga wrote:
>> Hi there.
>> Help pls, How to add category images into Category menu items?
>>
>> menu TS:
>>
>> menu.shopnav = HMENU
>> menu.shopnav {
>>     special = userfunction
>>     special.userFunc = user_tx_commerce_catmenu_pub->init
>>     special{
>>         category = 5
>>         showProducts = 0
>>         overridePid = 14
>>     }
>>     1 = TMENU
>>     1 {
>>         wrap = <ul>|</ul>
>>         expAll = 0
>>         noBlur = 1
>>         NO.wrapItemAndSub = <li>|</li>
>>     }
>>     2 < .1
>>     3 < .2
>>
>>     1.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
>>     2.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
>>     3.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
>> }
>>
>> Thanks for answer.
>>
> 
> With this TS I see only default image (cat_ico_decor.jpg) for all 
> category menu item. What's wrong?
> 
> menu.shopnav = HMENU
> menu.shopnav {
>     special = userfunction
>     special.userFunc = user_tx_commerce_catmenu_pub->init
>     special{
>         category = {$plugin.tx_commerce_lib.catUid}
>         showProducts = 0
>         overridePid = {$plugin.tx_commerce_lib.overridePid}
>     }
>     1 = TMENU
>     1 {
>         wrap = <ul>|</ul>
>         expAll = 0
>         noBlur = 1
>         NO {
>             wrapItemAndSub = <li>|</li>
>             ATagTitle.field = title
>             beforeImg = fileadmin/template/img/cat_ico_decor.jpg
>             beforeImg {
>                 import = uploads/tx_commerce/
>                 import.field = images
>                 import.listNum = 0
>             }
>             beforeImgLink = 1
>             RO = 0
>         }
>     }
>     2 < .1
>     3 < .2
> 
>     1.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
>     2.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
>     3.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear
> }
> 

No one have any ideas?

-- 
Regards,
Igor


More information about the TYPO3-project-commerce mailing list