[TYPO3-english] Set tt_news-category through typoscript
Andy Pattynama
andy.pattynama at gmail.com
Wed Sep 8 16:25:18 CEST 2010
Here's the solution if anyone is interested:
temp.catSinglePid = COA
temp.catSinglePid.10 = CONTENT
temp.catSinglePid.10 {
table = tt_news_cat
select {
pidInList=91
selectFields = uid
andWhere.data = page:uid
andWhere.wrap=single_pid=|
}
renderObj=TEXT
renderObj.field=uid
}
plugin.tt_news {
categorySelection.cObject < temp.catSinglePid.10
categoryMode = 1
}
On Wed, Sep 8, 2010 at 3:54 PM, Andy Pattynama <andy.pattynama at gmail.com>wrote:
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list