tt_news

1.3.5. The tt_news database-record

Field descriptions:

Title

The value inserted here will subsitute the marker ###NEWS_TITLE### in the html template.

Type

Here you can define the type of the newsitem. The different types are shown with different icons in the BackEnd. Possible types are:


 

News

This type is used for normal news articles. Only these news will have a link to a single view.


 

Link External page

These news records are only showing in list views (= LIST and LATEST). The links from these news records will point directly to the URL which is configured in the field "External URL".


 

Link internal page

These news records are also showing only in list views. The target for these links is configured globally in the Constant editor (advanced->target for internal links)

Restrict editing by non-Admins

If this "editlock" is enabled non-admin users can't open this record. All other actions (hide,copy,delete,....) are also disabled.

Hide, Start, Stop and Access

With the fields "Hide", "Start", "Stop" and "Access" you can configure the visibility of the current newsitem. The settings made here will override visibility settings from categories that are assigned to this news record.

Date/Time

The value of this field affects several things:

  1. The news in lists and in the archivemenu (amenu) are ordered by this field if no other filed is selected (-> see "Order by" this field in section "The tt_news content element")

  2. If a value for "datetimeDaysToArchive", "datetimeHoursToArchive" or "datetimeMinutesToArchive" is set, these value is added to the value of the datetime field and handled as archivedate. (see section "The archive" in this manual)

  3. The value of these field is taken for the html-template markers ###NEWS_DATE###, ###NEWS_TIME### and ###NEWS_AGE###. (all parsed through the stdWrap functions "strftime" or "age")

For new created records the current time is inserted atomatically.

Archivedate

If archivedate shows a value in the past, the news record will be shown in lists showing only archived news. Of course it will disappear from lists showing only non-archived news.

Transl.Orig

This field appears only in translated news records and points to the translation Original. (The translation original has to be in the default language)

Language

This field shows the language of the newsitem. This field should be not edited by hand because its value is handled by the translation system of TYPO3.

Author and Email

The values of this fields will substitute the html-template markers ###NEWS_AUTHOR### and ###NEWS_EMAIL###. By default only the author will be displayed and linked to the author's email address.

Hint:

If you need an author field which is a relation to another table where the authors are stored (f.e. fe_users), install the extension "News author relations" (extkey: news_author_rel) http://typo3.org/extensions/repository//news_author_rel/ which extends tt_news by this feature.

Versioning Label:

The versioning label of this record. This field is only visible when the extension "versioning" (extkey version) is installed.

Subheader

The value of this field will substitute the html-template marker ###NEWS_SUBHEADER###. If this field is empty the value of the field "Text" is taken instead.

Text

This is the main text of the news article and will substite the html-template marker ###NEWS_CONTENT###.

No automatic pagebreaks for this record

this will disable automatic pagebreaks after a certain amount of words for this record.

Keywords

The content of this field is written to a TypoScript register ("newsKeywords") which can be used to insert the keywords as "<meta> keywords" to the page header (plugin "metatags" required). If you don't need this field for "<meta> keywords" you can use it as a second "subheader" field (it will substitute the template marker ###NEWS_KEYWORDS###).

Category

Here you can assign categories to the current news record (if this record is no translation of another record).The available categories will be displayed in a tree. The titles of the assigned categories will substite the html-template marker ###NEWS_CATEGORY###, the category images will be written to the marker ###NEWS_CATEGORY_IMAGE###. Tt's possible to control editing permissons of news articles with the assigned categories. See section "Categories" for more information.

Images

Here you can define images that will be shown in the news item. All images will be rendered to the marker ###NEWS_IMAGE###.

Caption

Field for the imagecaption which will be displayed under the image. If more than one image is assigned the value of this field can be splitted by linebreaks.

Image altText and Image titleText

In these fields you can define two texts that will be inserted as alt and title texts in the image html tag. If more than one image is assigned the values of these fields can be splitted by linebreaks.

Links

The links that are inserted here will be displayed under the "bodytext" in the news single view. They will substite the marker ###NEWS_LINKS###. This field is parsed through the stdWrap function "parseFunc" so it will be possible to enter links as typolink. F.e.: <LINK http://typo3.org _blank>open typo3.org</LINK>

Related News

In this field you can select news records or pages that will be displayed as related news. Related news with type "news" will point to the single view of the related news record. Related news with type "External URL" or "internal Link" will point to the url or page id that is inserted in the news record. Related pages will be handled as news with type "internal link".

Related news will substite the marker ###NEWS_RELATED###.

Files

Here you can attach files to a newsitem. Files will substite the marker ###FILE_LINK###.

To top


Valid XHTML 1.0!