[TYPO3] Using tt_news to display the latest item dynamically

Michael Cannon michael at cannonbose.com
Sun Feb 26 17:47:52 CET 2006


Michiel,

I've got several websites using news latest to display a full article  
on a page.

If you're using the news subheader in your template, you'll need to  
increase the TypoScript crop property. Else, change your template to  
use NEWS_CONTENT.

Example TS in using news latest for a full page of display.
-----
plugin.tt_news.latestLimit = 1
plugin.tt_news.displayLatest {
     date_stdWrap.strftime= %m/%d/%Y
     time_stdWrap.strftime= %H:%M
     subheader_stdWrap.crop = 10000 | ...
     subheader_stdWrap.ifEmpty.field = bodytext
     imageCount=100
     caption_stdWrap.if.directReturn >
     caption_stdWrap.wrap = <span class="csc-news-image-caption"> | </ 
span>
     caption_stdWrap.trim=1
     caption_stdWrap.required=1
}
-----

Michael

-----
Michael Cannon
President of Cannonbose, LLC
Tel    : +1 (206) 351-0159         Fax : +1 (802) 609-2776



On Feb 26, 2006, at 09:42 , Michiel de Vries wrote:

> Hi All,
>
> I want to have a page that shows the latest item of my tt_news  
> database.
> I have tried to achieve that using the LATEST setting of the plugin.
> However that does not show me the full item, but only the summary.
>
> When I use the Single, I have the problem that I can't know the  
> news ID
> to display.
>
> How can I achieve this?
>
> Thanks,
>
> Michiel.
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.375 / Virus Database: 268.1.0/269 - Release Date:  
> 24-2-2006
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english




More information about the TYPO3-english mailing list