[TYPO3-ttnews] Categories Menu help

Martin Holtz typo3 at martinholtz.de
Mon Jul 23 12:17:34 CEST 2007


Hi Cray,

> I want to make such thing: I want make CATMENU show only subcategories
> of current category of all categories if it on the root category. As I
> understand it this construction I have to set not just 10, but 10 (if I
> on the root category) or current category id if not. Can you help me
> with it? ((:
>      table = tt_news_cat
>      select {
>        # the category folder(s)
>        pidInList = 36
>        andWhere = parent_category = 10
>      }
> 
> I tried make it with [globalVar GP:tx_ttnews|cat > 0] but doesn't work.
is there an = missing?
[globalVar=GP:tx_tt_news|cat > 0]

is andWhere is an stdWrap?

andWhere = parent_category = 
# Append the category-date
andWhere.append = TEXT
andWhere.append.data = {GPvar:tx_ttnews|cat}
andWhere.append.intval = 1
# default
andWhere.append.ifEmpty = 10


may that works - didnt test it.

gruss,
martin



More information about the TYPO3-project-tt-news mailing list