[TYPO3] Templavoila tt_news default news ID
Pawe³ Stanis³awczuk
ps at todesign.pl
Fri Aug 18 14:06:17 CEST 2006
Hi,
I almost there :)
This works for me:
plugin.tt_news {
defaultCode = SINGLE
pid_list = 31
}
lib.mainContent < plugin.tt_news
plugin.tt_news.singlePid = 31
tmp.pagecontent < lib.mainContent
lib.mainContent >
lib.mainContent = COA
lib.mainContent {
10 = CONTENT
10.table = tt_news
10.select {
pidInList = 31
orderBy = datetime desc
max = 1
}
10.stdWrap.if.isFalse.data = GPvar:tx_ttnews|tt_news
20 < tmp.pagecontent
}
But I can't make my TYPO to use my templates for tt_news, when I don't have
any news selected. Do You handled with that ?
Regards,
Pawe³ Stanis³awczuk
www.todesign.pl
U¿ytkownik "Gunnar Jonsson" <gu-jonss at online.no> napisa³ w wiadomo¶ci
news:mailman.1.1147815320.8532.typo3-english at lists.netfielders.de...
>I have a page with both a tt_news SINGLE view and a tt_news LATEST view.
>The
> first time I view this page, the LATEST view is giving a list of the
> latest
> news, but the SINGLE view gives the text "no news_id given" because there
> is
> not yet chosen a news item.
>
> I found a typoscript for implementing default news id in Single view in
> the tt_news documentation. However, it does not work when using a
> templavoila template. Is it a way to do the same thing in a website using
> Templavoila templates ? And how to do that ?
>
> Regards,
> Gunnar Jonsson
>
More information about the TYPO3-english
mailing list