[TYPO3-english] Set tt_news-category through typoscript

Andy Pattynama andy.pattynama at gmail.com
Wed Sep 8 15:54:01 CEST 2010


Hi there,

I have a lot of different news categories/news pages. Here is what I try to
achieve in typoscript: Set the plugin.tt_news.categorySelection to the uid
of the category, where the single_pid = id_of_current_page . My typoscript
so far:

temp.catSinglePid = COA
temp.catSinglePid.10 = CONTENT
temp.catSinglePid.10 {
  table = tt_news_cat
  select {
    pidInList=91
    selectFields = uid
    where = single_pid=77 // for testing purposes, I took a fix id
  }
}

plugin.tt_news {
  categorySelection.cObject < temp.catSinglePid.10
  categoryMode = 1
}

That doesn't work, since tt_news tells me that there are no news (although
there should be). What I don't understand: How can I use the uid from the
temp.catSinglePid.10.select and set it in the
plugin.tt_news.categorySelection?

Any help is greatly appreciated.

Regards,
Andy


More information about the TYPO3-english mailing list