Zum Inhalt springen

nsb_cat2menu erzeugt nur leere <a> tags

Erstellt am 12. Juni 2007 · 2 Antworten · letzte Antwort am 14. Juni 2007

Tags: Kategorien, TYPO3 4, Frage

fuss ·

Olla!

Ich habe das Problem, dass ich nur leere <a> Tags anstelle eines Kategorien Menüs bekomme.

<a href="shop.html?&amp;no_cache=1"></a>

Alle diesbezüglichen Posts brachten leider auch kein Licht ins Dunkel. Hat einer vtl. einen Tip für mich?

Mein tree:

|shop[pid403]
|_singleview
|_...
|_agb
|_Produkte[SysFolder,pid405]
|__Produkt1[pid423]
|__...
|__Produktn[pid432]

Mein Typoscript:

temp.category2 = HMENU
temp.category2 {
 wrap = <div class="columnrightelement"><h1>Produktauswahl:</h1>|</div>
 noBlur = 1
 expAll = 1
 special = userfunction
 special {
  userFunc = tx_nsbcat2menu_pi1->main
  #category uid to display, comma separated. it's recursive
  catList = 423,424,425,426,427,428,429,430,431,432
  #uid of the page containing the category tree, comma separated	
  pidlist = 405

  catTable = tt_products_cat
  extTrigger = tx_ttproducts_pi1
  varCat = cat
  parentEntry = parent_category
  #if true selecting a parent category selects all childs
  recSel = 0
  #targetId = 433
 }
 1 = TMENU
 1 {
  noBlur = 1
  wrap = <ul>|</ul>
  NO = 1
  NO {
   stdWrap.htmlSpecialChars = 1
   wrapItemAndSub = <li>|</li>
  }
 }
 2 < .1
 3 < .1
}

TYPO3 4.0.4
tt_products 2.5.2 (Use Page as Category = 1)
mbi_products_categories 0.1.1
nsb_cat2menu 0.0.1

fuss ·

Update:
Wenn ich in Zeile 17 folg. einfüge, bekomme ich zumindest schonmal mein Menü mit Unterkategorien angezeigt:

parentEntry = parent_id

Allerdings werden Unterkategorien offensichtlich stur nach der 1.NO Definition gerendered, anstatt in ein extra <ul> gepackt zu werden.

Any hints?

gruss, fuss

fuss ·

ARGH!
Steht da klar und deutlich:

#category uid

Man sich nicht wundern, das nichts angezeigt wird, wenn man die IDs der Seiten (und nicht der Kategorien) angibt... 😉