[TYPO3-ttnews] Display latest news in single form if no id is given with templavoila
Daniel Huf
dhuf at cross-systems.com
Tue Nov 30 14:23:26 CET 2010
Hi Raf,
I usually use an extension like:
http://typo3.org/extensions/repository/view/tscobj/current/
or you could set it directly in the templavoilà template.
That way I create a TYPOSCRIPT to render what I want and then using the
globalVar condition for the selection.
For example:
[globalVar = GP:tx_ttnews|tt_news > 0]
lib.page.content.main < plugin.tt_news
lib.page.content.main.code = SINGLE
[else]
lib.page.content.main.20 = RECORDS
lib.page.content.main.20.source.current=1
lib.page.content.main.20.tables = tt_content
[global]
Good luck,
Daniel
On 11/30/2010 02:13 PM, Raf wrote:
> Hello all,
>
>
>
> Sorry for that question again but I would like to display latest news item
> in single view if no id is given.
>
> I saw the example in the tt_news doc but I'm using templavoila and really
> don't know how to make it work.
>
>
>
> It's simple; I just want to show "default" news in a unique page if no news
> id is given.
>
>
>
> Can somebody give me a peace of code with templavoila?
>
>
>
>
>
> I also try to change the "Latest" template to make it work but it seems that
> the bodytext of the news is not rendered correctly..
>
>
>
> Thanks a lot for your help.
>
> Raf
>
More information about the TYPO3-project-tt-news
mailing list