[TYPO3-ttnews] Display latest news in single form if no id is given with templavoila
raf
powerbook at fastnet.ch
Tue Nov 30 23:22:46 CET 2010
Thanks for your help Daniel,
What I have done is:
- Create a page with a single news plugin element
- Create an ext. template with your code
When I click on a list item linked to that page it works, but when I display
the page directly I have an error message saying that it's not fully
configured...
Where am I wrong?
Thanks a lot!
Raf
-----Message d'origine-----
De : typo3-project-tt-news-bounces at lists.typo3.org
[mailto:typo3-project-tt-news-bounces at lists.typo3.org] De la part de Daniel
Huf
Envoyé : mardi 30 novembre 2010 14:23
À : typo3-project-tt-news at lists.typo3.org
Objet : Re: [TYPO3-ttnews] Display latest news in single form if no id is
given with templavoila
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
>
_______________________________________________
TYPO3-project-tt-news mailing list
TYPO3-project-tt-news at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-tt-news
More information about the TYPO3-project-tt-news
mailing list