[TYPO3-commerce] No ACT or CUR in Menu

Ralf Merz ralf.merz at heindl.de
Mon Mar 31 10:48:49 CEST 2008


Hi Arno,

I build the menu like this. It´s not the best one because of using 
tables, but it works for me:

######
# Comerce Menue
################

lib.tx_commerce.navigation = HMENU
lib.tx_commerce.navigation {
     special = userfunction
     special.userFunc = user_tx_commerce_catmenu_pub->init
     special{
            // Kategorie fuer Startebene
        category = {$plugin.tx_commerce_lib.catUid}

           // zeige Producte
        showProducts = 1
            // PID fuer die Anzeige der Seite
        overridePid = {$plugin.tx_commerce_lib.overridePid}


        useRootlineInformationToUrl = 
{$plugin.tx_commerce_lib.useRootlineInformationToUrl}
            // Menuebenen
        1 = TMENU
        1.ACT = 1
        #1.expAll = 1
        2 = TMENU
        2.ACT = 1
        #2.expAll = 1
        #3 = TMENU
        #3.ACT = 1
        #3.expAll = 1
        #4 = TMENU
        #4.expAll = 1
     }
#1.ACT = 0
1.expAll = 0
1.NO.allWrap  = <table width="200" border="0" cellspacing="0" 
cellpadding="0"><tr valign="top"><td><table width="200" border="0" 
cellspacing="1" cellpadding="0"><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_title" 
bgcolor="#5897D0"><div id="nav_level1"> | </div></td></tr><tr><td><!-- 
<img src="fileadmin/magicmaps/templates/images/nav_linie.gif" 
width="200px" height="1" alt=""> --></td></tr><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/space.gif" width="1" 
height="7" alt=""> --></td></tr></table>
1.NO.allWrap.typolink.target = _self
1.ACT = 1
1.ACT.allWrap = <table width="200" border="0" cellspacing="0" 
cellpadding="0"><tr valign="top"><td><table width="200" border="0" 
cellspacing="1" cellpadding="0"><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_title" 
bgcolor="#5897D0"><div id="nav_level1_act"> | 
</div></td></tr><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/space.gif" width="1" 
height="7" alt=""> --></td></tr></table>
1.ACT.allWrap.typolink.target = _self
#1.ACT.doNotLinkIt = 1
1.CUR = 1
1.CUR.allWrap = <table width="200" border="0" cellspacing="0" 
cellpadding="0"><tr valign="top"><td><table width="200" border="0" 
cellspacing="0" cellpadding="0"><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_title" 
bgcolor="#5897D0"><div id="nav_level1_act"> | 
</div></td></tr><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td><!-- <img 
src="fileadmin/magicmaps/templates/images/space.gif" width="1" 
height="7" alt=""> --></td></tr></table>
1.CUR.allWrap.typolink.target = _self
#1.CUR.doNotLinkIt = 1

2.expAll = 1
2.NO.allWrap = <table width="200" border="0" cellspacing="1" 
cellpadding="0"><tr><td><!-- <img src=" nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_rubrik"><div 
id="nav_level2"> | </div></td></tr><tr><td><!-- <img src=" 
nav_linie.gif" width="200px" height="1" alt=""> 
--></td></tr><tr><td><!-- <img src=" space.gif" width="1" height="7" 
alt=""> --></td></tr></table>
2.ACT = 1
2.ACT.allWrap = <table width="200" border="0" cellspacing="1" 
cellpadding="0"><tr><td><!-- <img src=" nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_rubrik"><div 
id="nav_level2_act"> | </div></td></tr><tr><td><!-- <img src=" 
nav_linie.gif" width="200px" height="1" alt=""> 
--></td></tr><tr><td><!-- <img src=" space.gif" width="1" height="7" 
alt=""> --></td></tr></table>
2.ACT.allWrap.typolink.target = _self
2.ACT.doNotLinkIt = 0
2.CUR = 1
2.CUR.allWrap = <table width="200" border="0" cellspacing="0" 
cellpadding="0"><tr><td><!-- <img src=" nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_rubrik"><div 
id="nav_level2_act"> | </div></td></tr><tr><td><!-- <img src=" 
nav_linie.gif" width="200px" height="1" alt=""> 
--></td></tr><tr><td><!-- <img src=" space.gif" width="1" height="7" 
alt=""> --></td></tr></table>
2.CUR.allWrap.typolink.target = _self
2.CUR.doNotLinkIt = 0

#3.expAll = 0
#3.NO.allWrap = <tr><td><!-- <img src=" nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_produkt"><div 
id="nav_level3"> | </div></td></tr><tr><td><!-- <img src=" 
nav_linie.gif.OFF" width="200px" height="1" alt=""> --></td></tr></table>
#3.ACT = 1
#3.ACT.allWrap = <tr><td><!-- <img src=" nav_linie.gif" width="200px" 
height="1" alt=""> --></td></tr><tr><td id="menu_produkt"><div 
id="nav_level3_act"> | </div></td></tr><tr><td><!-- <img src=" 
nav_linie.gif.OFF" width="200px" height="1" alt=""> --></td></tr></table>

     #4.expAll = 1
     #4.NO.allWrap = O4OO | OOO <br />
     1.itemArrayProcFunc  = user_tx_commerce_catmenu_pub->clear
     2.itemArrayProcFunc  = user_tx_commerce_catmenu_pub->clear
     3.itemArrayProcFunc  = user_tx_commerce_catmenu_pub->clear
     #4.itemArrayProcFunc  = user_tx_commerce_catmenu_pub->clear
}
lib.menulinks < lib.tx_commerce.navigation

Arno Pfeuffer schrieb:
> Ralf Merz schrieb:
>> Hi Arno,
>>
>> I don´t know the reaseon, but I use "allWrap" instead of 
>> "wrapItemAndSub" in NO an ACT. E.g:
>> ...
>>   1.NO.allWrap = <li>|</li>
>>   1.ACT = 1
>>   1.ACT.allWrap = <li class="act">|<li>
>> For me, it works, maybe for you, too.
>>
>> If it doesn´t work, you could also try to add the class="act" to your 
>> a-tag with
>> 1.ACT.aTagParams = class="act"
>>
>> ... just an idea.
>>
> hi ralf,
> thanks for your answer, but it dosn't work. It seems, that every code 
> under ACT will not notice. For CUR it's the same.
> How have you build up your commerce menu?


-- 
--
Greetings
Ralf Merz

Heindl Internet AG
Tübingen , Germany
ralf.merz at heindl.de


More information about the TYPO3-project-commerce mailing list