[TYPO3-ttnews] how to show latest news headline and its publish date and a link to its detail on the top of all pages
Marcus 'biesior' Biesioroff
vsbies at wp.pl
Tue May 25 13:19:36 CEST 2010
W dniu 2010-05-20 14:09, Sazzad Hossain Khan pisze:
>> Dear All,
>> I am using tt_news.
>> but i want to show the latest news headline and its publish date and a link
>> to its detail on the top of all pages ie. template.
>> how can i do that?
>> can anyone help me in this issue?
>>
>> Best Regards,
>> Sazzad Hossain Khan (Tushar)
>>
>>
Copy the plugin.tt_news to TEMPLATE object.
ie. if using stnadrd mapping way do something like:
page.10.marks.MY_LATEST_NEWS < plugin.tt_news
if using templavoila, you need to create mapping of the TypoScript
object and do the sam as above:
lib.myLatestNews < plugin.tt_news
after that you need also configure the mapped element to show exactly
what you need (with separate template of tt_news), check the manual,
[1]
http://typo3.org/documentation/document-library/extension-manuals/tt_news/3.0.1/view/1/4/#id2506939
you need to configure at least:
page.10.marks.MY_LATEST_NEWS {
code = LATEST
templateFile =
fileadmin/templates/my_template_for_latest_news_showed_on_every_page.html
latestLimit = 1
//where are the news stored
pid_list = 123
// where should they be displayed
singlePid = 321
}
That's all
--
Marcus 'biesior' Biesioroff
a.k.a. Marek Krawczyk (original)
Polish TYPO3 Community
http://typo3.pl
More information about the TYPO3-project-tt-news
mailing list