[TYPO3] default news item tt_news
Martin S
martin at hauntedhousecom.net
Tue Jul 25 09:13:04 CEST 2006
Martin S wrote:
> I Posted this to the tt_news newsgroup - but as I am a bit short of time
> I'll try here as well. Sorry about the double postings. What I'm trying to
> do is get tt_news to display a default news_item on a single page when
> nothing has been selected:
>
> "Finally found the section in the manual.
> I am using a plain 3-column template and added a tt_news in single mode on
> in the main column.
>
> Then I added the following an ext template on the page.
>
> plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg =
> plugin.tt_news.singlePid=3
>
> tmp.pagecontent < page.10.subparts.contentsarea
> page.10.subparts.contentarea >
> page.10.subparts.contentarea = COA
> page.10.subparts.contentarea {
> 10 = CONTENT
> 10.table = tt_news
> 10.select {
> pidInList = 4
> orderBy = datetime desc
> max = 1
> categorySelection = 4
> categoryMode = 1
> }
> 10.stdWrap.if.isFalse.data = GPvar:tt_news|tt_news
> 20. < tmp.pagecontent
> }
>
> Where plugin.tt_news.singlePid=3 points to my single page and
> pidInList = 4 the sysfolder with news items. I am not getting anything
> displayed except for the plugin.tt_news._LOCAL_LANG.default.noNewsIdMsg =
> (If I change to hi I get "hi"). I'm not getting the latest
> news item for category 4 (or any at all if I remove the two "category..."
> lines)
>
>
> So what am I doing wrong here?"
Anyone with an idea?
Martin S
More information about the TYPO3-english
mailing list