[TYPO3-ttnews] Ext:tx_news - detail page shows latest item via singleNews
Sebastiaan van Parijs
svparijs at bkwi.nl
Tue May 1 11:49:33 CEST 2012
Hey there,
I haven't seen this issue raised yet, although i'm probably not the only
one with this issue.
I have several detail views which are all available in the menu so if
they are visited they need to show the latest news article of a specific
category, i was trying this:
[PIDinRootline = 5] && [globalVar = GP:tx_news_pi1|news=]
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
[end]
It dies with the following error:
#1274799932: An array could not be converted to a plain value. (More
information)
Any suggestions or idea's, i hope this is a default feature that is
aether not documented or overlooked by me.
Cheers,
Sebastiaan
More information about the TYPO3-project-tt-news
mailing list