[TYPO3] category wise news

Kuldev Singh kuldev at fivee.in
Sat Apr 12 12:04:14 CEST 2008


Hi all

I want to show category wise news in my website.
like this:

-category 1
--news 1
--news 2
-category 2
--news 1
--news 2
.
.
.
.
.

I have changed in template and try much typoscript but nothing happend 
category is being repeated.


I have wrote this TS :



page.20 = COA
page.20 {
     1 = CONTENT
     1{
         table =   tt_news_cat
         select {
             #the category folder(s)
             pidInList = 33
         }
         renderObj = COA
         renderObj.wrap = <div class="header">|</div>
         renderObj{
             5 = TEXT
             5 {
                 field = title
                 wrap = |
             }
             10 = CONTENT
             10 {
                     table =   tt_news_cat
                 select {
                     #the category folder(s)
                     pidInList = 33
                 }
                 5 = TEXT
                 5.field = uid
             }

             20 = CONTENT
             20{
                 table =   tt_news
                 select {
                     #the category folder(s)
                     pidInList = 33

                 }
                 renderObj = COA
                 renderObj.wrap = <div class="header_itmes"> | </div>
                 renderObj{
                     5 = TEXT
                     5 {
                         field = title
                         wrap = |
                     }
                 25 < page.20.1.renderObj.10
             }
         }
     }
}



How I can solve this problem ?.

please help.

thanking you.


regards
Kuldev Bisht


More information about the TYPO3-english mailing list