Hallo zusammen,
ich möchte gern die Kategorien aus meinem Shop im Menü anzeigen.
Das Menü nur mit Kategorien bekomme ich hin:
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41:
| page.10 { subparts { col2_content = HMENU col2_content { 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.expAll = 0 1.wrap= <ul>|</ul> 1.noBlur = 1 1.NO = 1 1.NO.ATagTitle.field = title 1.NO.linkWrap = <li>|</li> 1.ACT = 1 1.ACT < .NO 1.ACT.ATagTitle.field = title 1.ACT.ATagParams = class="active" 1.ACT.linkWrap = <li>|</li> 1.ACTIFSUB < .ACT 1.ACTIFSUB = 1 1.ACTIFSUB.ATagTitle.field = title 1.ACTIFSUB.ATagParams = class="active" 1.ACTIFSUB.linkWrap = <li>| 2 = TMENU 3 = TMENU 4 = TMENU } 1.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear 2.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear 3.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear } } } |
Aber, wie baue ich das catmenu nun in den subpart.
Conditions dürfen ja wohl nicht in Eckige klammern.
Dies geht jedenfalls nicht:
Typoscript-Code:
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71:
| 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.expAll = 0 1.wrap= <ul>|</ul> 1.noBlur = 1 1.NO = 1 1.NO.ATagTitle.field = title 1.NO.linkWrap = <li>|</li> 1.ACT = 1 1.ACT < .NO 1.ACT.ATagTitle.field = title 1.ACT.ATagParams = class="active" 1.ACT.linkWrap = <li>|</li> 1.ACTIFSUB < .ACT 1.ACTIFSUB = 1 1.ACTIFSUB.ATagTitle.field = title 1.ACTIFSUB.ATagParams = class="active" 1.ACTIFSUB.linkWrap = <li>| 2 = TMENU 3 = TMENU 4 = TMENU } 1.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear 2.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear 3.itemArrayProcFunc = user_tx_commerce_catmenu_pub->clear } page.10 { subparts { col2_content = HMENU col2_content { 1 = TMENU 1 { expAll = 1 wrap = <ul class="vlist">|</ul> NO = 1 NO { wrapItemAndSub = <li>|</li> } CUR = 1 CUR { wrapItemAndSub = <li class="active">|</li> } } 2 < .1 2.wrap = <ul>|</ul> 3 < .2 } } } [PIDinRootline = 23] page.10.subparts.col2_content.1 { ACT { after.cObject = HMENU after.cObject < temp.catmenu } } [END] |
stimmt temp.catmenu überhaupt?
Würde mich über eine Antwort freuen.
Gruß ele