[TYPO3-ttnews] Ext:tx_news - detail page shows latest item via singleNews

Georg Ringer typo3 at ringerge.org
Wed May 2 05:57:53 CEST 2012


Hi,

the problem is really not about ext:news but because of your TypoScript!


> singleNews = CONTENT
> singleNews {
>     table = tx_news_domain_model_news
>     select {
>         pidInList = 35,36
>         selectFields = uid
>         leftjoin = tx_news_domain_model_news_category_mm ON
> (tx_news_domain_model_news.uid =
> tx_news_domain_model_news_category_mm.uid_local)
> 
>         andWhere.dataWrap =
> tx_news_domain_model_news_category_mm.uid_foreign = 3
> 
>         orderBy = tx_news_domain_model_news.datetime DESC
>         max = 1
>     }
> }
> plugin.tx_news.settings.singleNews < singleNews


can you debug this somewhere, e.g. where the error is thrown because I
guess you will get an array with 'uid' => 123 and not the 123 itself
returned.

Georg


More information about the TYPO3-project-tt-news mailing list