[TYPO3-english] TS select with tt_news: get current uid of news-item in LIST

Bert Hiddink [BENDOO e-work solutions] hiddink at bendoo.nl
Thu Apr 19 11:53:22 CEST 2012


Hello,

Please have a look at the snippet below. It works almost except that I 
can not get printed the uid of the current item in LIST-mode.

andWhere.dataWrap = tt_news.uid = {field:uid}

...gives me the uid of the page and that is obviously not what I want...

What do I overlook? Any suggestions?

#MARKERS
plugin.tt_news.genericmarkers {
  LIST {
   category1 = CONTENT
   category1 {
     table = tt_news
     select {
       selectFields = *
       join = tt_news_cat_mm ON (tt_news.uid = tt_news_cat_mm.uid_local 
) JOIN tt_news_cat ON (tt_news_cat_mm.uid_foreign=tt_news_cat.uid )
       where=tt_news_cat.parent_category=3
       andWhere.dataWrap = tt_news.uid = {field:uid}
       pidInList = 18
       max=1
     }
     renderObj = TEXT
     renderObj.field = title
     renderObj.wrap = <p><b>Parent (3)</b>:&nbsp;|</p>
   }
  }
}


Thanks and regards,
Bert


More information about the TYPO3-english mailing list