Im Handbuch steht bei den TS-Beispielen ein Codesnippet für die Darstellung aller Kategorien:
Zitat:
This will insert a simple list of all tt_news categories from configurable folders to the left content-column. Clicking on a category link will display only news with the selected category. (highlights the current category)
### news Category Selector
page.10.subparts.left_content >
page.10.subparts.left_content = CONTENT
page.10.subparts.left_content {
table = tt_news_cat
select {
# the category folder(s)
pidInList = 124
}
renderObj = COA
renderObj.wrap = <div class="news-archive-item">|</div>
renderObj {
10 = TEXT
10.field = uid
10.dataWrap = <a href=index.php?id={TSFE:id}&tx_ttnews[cat]= | >
10.insertData = 1
20 = TEXT
20 {
field = title
wrap = <strong>|</strong>
if {
value.field = uid
equals.data = GPvar:tx_ttnews|cat
}
}
21 = TEXT
21 {
field = title
wrap = |
if {
value.field = uid
equals.data = GPvar:tx_ttnews|cat
negate = 1
}
}
30 = TEXT
30.value = </a><br />
}
}
|
Das könnte man doch als Unterpunkt eines Menüs einbauen.