[TYPO3-english] register:newsCategoryUid

Pero Matic takoje at takoje.hr
Tue Aug 4 14:39:33 CEST 2009


"Michael Miousse" <mmiousse at infoglobe.ca> wrote in message 
news:mailman.1.1249389225.13308.typo3-english at lists.netfielders.de...
> Le Tue, 04 Aug 2009 10:38:30 +0200, Pero Matic a écrit :
>
>> Hi. In TSRef doc. it says that  newsCategoryUid register holds the Uid
>> of the category of the current news record but i was wandering what is
>> the current news record when news code is defined as LIST? What i try to
>> accomplish is to have a LIST of news on one page from one category and
>> to write category name on the top of the page. This way i can use the
>> same template for all pages/different categories. Thx!
>
> the newsCategoryUid is different for each news displayed from your LIST
> it has 1 value per news display.
>
> what if you use the CATMENU code from tt_news and than use the get
> variable from the url to get the current category. this way you will have 
> a list
> filtered by categories and you will be able to know whitch category is 
> currently listed

Hm, i might try it. Thank you. 




More information about the TYPO3-english mailing list