Zum Inhalt springen

Probleme mit tt_products, mbi_products_categories und nsb_cat2menu

Erstellt am 8. Mai 2007 · 1 Antwort · letzte Antwort am 8. Mai 2007

Tags: Kategorien, Frage

droptix ·

Ich nutze `mbi_products_categories`, damit ich verschachtelte Kategorien für `tt_products` nutzen kann. Zur Darstellung des Kategoriebaums verwende ich `nsb_cat2menu` und folgendes TS:

# category tree for tt_products
temp.shopcategories = HMENU
temp.shopcategories {
	special = userfunction
	special {
		userFunc = tx_nsbcat2menu_pi1->main
		# uid(s) of the sysfolder containing the category tree, comma separated    
		pidlist = 10
		# category uid(s) to display, comma separated (recursive)
		catList = 0
		# name of the category table
		catTable = tt_products_cat
		# name of the parent category in the category table    
		parentEntry = parent_category
		# name of the extension to trigger
		extTrigger = tx_ttproducts_pi1
		# variable name of the category in target extension
		varCat = cat
		# the page uid containing the extension to display, keep commented for self targeting
		targetId = 11
		# show child categories (recursive select), boolean
		recSel = 0
	}
	
	1 = TMENU
	1 {
		wrap = <ul>|</ul>
		
		NO = 1
		NO.wrapItemAndSub = <li>|</li>
		
		CUR = 1
		CUR < .NO
		CUR.ATagParams = class="cur"
		
		ACT = 1
		ACT < .CUR
		
		ACTIFSUB = 1
		ACTIFSUB < .ACT
	}
}

Meine Shop-Startseite hat die pid=7. Dort wird sehr schön das Kategoriemenü angezeigt.

Was auffält: Das normale Kategoriemenü von tt_products erzeugt solche Links:

http://localhost/index.php?id=7&tx_ttproducts_pi1[cat]=1&cHash=7d7f44c818

Bei nsb_cat2menu sieht der Link so aus (mit targetId=11):

http://localhost/index.php?id=11&no_cache=1&tx_ttproducts_pi1[cat]=1

Das Caching ist unterschiedlich, weiß aber nicht ob das mein Problem auslöst. Mit targetId=11 erreiche ich, dass ich mit dem Anklicken einer Kategorie von der Startseite weg geleitet werde, und zwar auf die Seite mit der pid=11, wo ein Seiteninhalt vom Typ Plugin: tt_products, CODE: LIST (Produkte: Liste) drin liegt.

Ergebnis: Es wurden keine Artikel gefunden.

Wo liegt das Problem? Ich habe einen Artikel angelegt, der in der Kategorie mit der uid=1 liegt. In der MySQL-DB steht im Feld category auch der Wert 1, also sollte alles stimmen.