[TYPO3-ttnews] how to show latest news headline and its publish date and a link to its detail on the top of all pages

Sazzad Hossain Khan sazzad at shehala.com
Tue May 25 15:02:59 CEST 2010


Thanks.


I have already solved this by:
### News LATEST in top
lib.newsLatest < plugin.tt_news
lib.newsLatest {
  code >
  code = LATEST
  latestLimit = 1


  pid_list >
  pid_list = 38

  singlePid = 39

  catImageMode = 0
  catTextMode = 0
  templateFile = fileadmin/templates/news_template_latest.tmpl
  excludeAlreadyDisplayedNews = 0
}


Best Regards,
Sazzad Hossain Khan (Tushar)
Team Leader
Web Department
Shehala IT Limited
Mobile: +88-017-23-911323


On 25 May 2010 17:19, Marcus 'biesior' Biesioroff <vsbies at wp.pl> wrote:

> 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
>
> _______________________________________________
> 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