tt_news

1.3.11. The Archive

The "news Archive" is always build by two content-elements: An archive-menu ("AMENU") element and a "LIST" element that shows only archived news-records. The links from the "AMENU" point to that "LIST" element. You can configure the pid (page ID) of the "LIST" in the Constant-editor or directly in TypoScript with "archiveTypoLink.parameter". The "AMENU" and the (archive)-"LIST" can be on different pages or frames.

The "AMENU" content-element can be considered as a small calender that shows news by their "datetime" field. The value of the field "archivedate" has no influence on the archive-menu.

Note: Unless you're not using "Human readyble Archivedates" it is required to configure this "LIST" to show only archived items. If the LIST is set to "don't care", it really does't care about archive settings and other archive-related parameters set from the links in the AMENU element -> it will always show all news-records.     

tt_news offers a nice feature called "automated archiving" (see -> datetimeDaysToArchive, datetimeHoursToArchive or datetimeMinutesToArchive). If this is enabled, news records with a "datetime" field, that is older than the number of days, given in "datetimeDaysToArchive" will appear in lists showing only archived news (same works for hours and minutes).
This means also, that these news records disappear from "LIST" elements showing only non-archived news and they will also disappear from "LATEST" elements.

The displaying behaviour of news content-elements showing archived news is influenced by the TS-variables "enableArchiveDate" and "datetimeDaysToArchive", "datetimeHoursToArchive" or "datetimeMinutesToArchive".
The following example tries to give you an overview which TypoScript settings will have which effect on different news content elements.

Environment:

Today = 03.10.04
datetimeDaysToArchive = 30

news-records will be handled as archived, if their datetime field is older than datetimeDaysToArchive Start (DDTAStart) =  03.09.04

Let's say, you have these news-records:

News 1

DateTime: 01.11.04 (Future)

ArchiveDate: 0 (empty)

News 2

DateTime: 01.10.04 (Past, after DDTAStart)

ArchiveDate: 0 (empty)

News 3

DateTime: 15.09.04 (Past, after DDTAStart)

ArchiveDate: 30.09.04 (Past)

News 4

DateTime: 01.08.04 (Past, before DDTAStart)

ArchiveDate: 30.08.04 (Past)

News 4a

DateTime: 01.08.04 (Past, before DDTAStart)

ArchiveDate: 0 (empty)

News 5

DateTime: 01.07.04 (Past, before DDTAStart)

ArchiveDate: 01.12.04 (Future)

 

 

Archive Settings

enable

Archive

Date

datetime

DaysTo

Archive

 

AMENU

LIST

show  archived

LATEST

LIST

show NON archived

LIST

don't care

0

0


  - 2 3 4 4a 5
  1 2 3 4 4a 5
  1 2 3 4 4a 5
  1 2 3 4 4a 5
  1 2 3 4 4a 5

0

30


  - - - 4 4a 5
  - - - 4 4a 5
  1 2 3 - -  -
  1 2 3 - -  -
  1 2 3 4 4a 5

1

0


  - 2 3 4 4a -
  1 2 3 4 4a -
  1 2 - - 4a 5
  1 2 - - 4a 5
  1 2 3 4 4a 5

1

30


  - - 3 4 4a -
  - - 3 4 4a 5
  1 2 - - -  -
  1 2 - - -  -
  1 2 3 4 4a 5

 

Note that newsitems with an empty archivedate will appear in all lists.

To top


Valid XHTML 1.0!