Tt news/configuration

From TYPO3Wiki

Jump to: navigation, search
tt_news
Translations info
An english page for every translation.
All pagenames in english.

  en       de   nl   fr   ja   zh  

Contents

Official Documentation

http://typo3.org/documentation/document-library/extension-manuals/tt_news/current/view/1/7/#id2931185

constant editor:

#page on which the news are shown by list
plugin.tt_news.pid_list = 14
#page on which the news are shown single
plugin.tt_news.singlePid = 4
#page on which the news are archived
plugin.tt_news.archiveTypoLink.parameter = 104

typoscript setup:

parametres archive

plugin.tt_news.enableArchiveDate >
plugin.tt_news.enableArchiveDate = 1
plugin.tt_news.datetimeDaysToArchive >
plugin.tt_news.datetimeDaysToArchive = 30
plugin.tt_news.archiveMode >
plugin.tt_news.archiveMode = month
plugin.tt_news.archiveMenuNoEmpty >
plugin.tt_news.archiveMenuNoEmpty = 1
plugin.tt_news.limit = 3
plugin.tt_news.reverseAMenu = 1
plugin.tt_news.displayArchivedInLatest = 1

##separting languages
plugin.tt_news.showNewsWithoutDefaultTranslation = 1

parametre drawing

Building of a lib.newslatest object so that you can use it with typoscript on any page.

# displayCurrentRecord : list drawing
tt_news.displayCurrentRecord = 0
lib.newsLatest < plugin.tt_news
lib.newsLatest {
    templateFile=fileadmin/templates/news_template.tmpl
    code >
    code = LATEST
    catImageMode = 0
    catTextMode = 0
}

When you select a news the link sends you to the single page with the id of the news

Put this page hidden in the menu so that the user can't go there without submitting an ID, an error might appear (something like, no news id given)

If you configured tt_news to show the archives, a link to them should appear.

TSCONFIG:

New news not hidden by default

That might seem strange but it is very useful if your users want to add news in the frontend (with fe_news, which will be shown later). The new news being hidden by default, the user adding a news don't see it on the website. So he has to log into the backend to unhide the news.

To do this automatically you can add this to your user TSconfig:

//default news not hidden

TCAdefaults.tt_news.hidden=0

//clear cache for news page TCEMAIN.clearcachecmd = id //of the page or "all" 

The cache part is commented here because in my case the news are shown on every page.

But if you have a list of news on only one page don't hesitate on using it.

Fill in author name and mail by default

Add this to your user TSconfig:

//default author

TCAdefaults.tt_news.author = full name
TCAdefaults.tt_news.author_email = name@domain.tld
Personal tools