[Typo3] Display tt_news_cat of related news in Single view

Hendrick Bosse-Lange mail at hbosse.com
Sat Feb 12 01:02:06 CET 2005


I guess I am almost there, but there is one (hopefully) last problem.
While it is easy to get the related news uid with:

  plugin.tt_news.getRelatedCObject.10.default.20.field = uid

I can't figure out how to pass it to  10.select.where = uid=75  instead of
the hardcoded 75 in the snippet below. It feels like I am missing an
essential piece of TS understanding here...

Thanks for your patience!


  temp.MMtest = COA
  temp.MMtest {
   10 = CONTENT
   10.table = tt_news
   10.select.pidInList = 20, 21, 22
   10.select.where = uid=75
   10.select.andWhere = deleted=0 AND hidden=0
   10.select.leftjoin = tt_news_cat_mm ON tt_news.uid =
tt_news_cat_mm.uid_local
   10.select.groupBy = tt_news_cat_mm.uid_foreign
   10.renderObj = COA
   10.renderObj {
--cut --
  }
}

plugin.tt_news.getRelatedCObject.10.default.30 < temp.MMtest





More information about the TYPO3-english mailing list