# NEWS TEMPLATES

## EXAMPLE

    Global markers, as set up in TypoScript:
    These are substituted throughout the whole template.

    Markers:
    GW1B / GW1E
    GW2B / GW2E
    GW3B / GW3E

    GC1
    GC2
    GC3
    GC4

    Common markers:
    These are substituted in all news item displaying templates:

    Markers:
    NEWS_UID - ID number (uid) of the news item
    NEWS_TITLE - News item title
    NEWS_AUTHOR - name of author
    NEWS_EMAIL - email of author
    NEWS_DATE - date
    NEWS_TIME - time
    NEWS_AGE - age of news item in minutes, hours, days or years
    NEWS_SUBHEADER - subheader, if empty main content is inserted here in LIST and LATEST
    NEWS_CONTENT - main content
    NEWS_LINKS - news links
    NEWS_CATEGORY - news item category
    NEWS_RELATED - links to related news
    NEWS_IMAGE - news item images

    PAGE_UID - Page id of the parent page (pid)
    PAGE_TITLE - Title of the parent page of the news item
    PAGE_AUTHOR - Page author, if any
    PAGE_AUTHOR_EMAIL - Page author email, if any

    Wrapped Subparts:
    LINK_ITEM - link to the news item single display

### TEMPLATE_LATEST

This is the template for the latest news, typically displayed on a frontpage.

###GW2B### BREAKING NEWS:###GW2E###
###GW2B### ###NEWS_DATE### ###NEWS_TIME### ###NEWS_TITLE### ###NEWS_IMAGE### ###NEWS_SUBHEADER### [more] (Cat: ###NEWS_CATEGORY###) ###GW2E###
###GW2B### ###NEWS_DATE### ###NEWS_TIME### ###NEWS_TITLE### ###NEWS_IMAGE### ###NEWS_SUBHEADER### [more] (Cat: ###NEWS_CATEGORY###) ###GW2E###
###GW2B###Go to archive###GW2E###

### TEMPLATE_LIST

This is the template for the list of news in the archive or news page or search.

###GW1B### ###NEWS_TITLE### ###GW1E### ###GW2B### - ###NEWS_DATE### ###GW2E###
###GW1B### ###NEWS_SUBHEADER### ###GW1E### ###GW2B###By ###NEWS_AUTHOR###, ###NEWS_TIME### Category: ###NEWS_CATEGORY### ###GW2E### |  | ###NEWS_IMAGE###
###GW2B###Prev ###BROWSE_LINKS### Next###GW2E###

### TEMPLATE_SINGLE

This subpart is used to display single news items

###GW2B### ###NEWS_DATE### ###NEWS_TIME### ###GW2E### ###GW1B######NEWS_TITLE######GW1E### ###GW2B### By ###NEWS_AUTHOR### ###GW2E### ###GW1B### ###NEWS_SUBHEADER### ###NEWS_IMAGE### ###NEWS_CONTENT### Links: ###NEWS_LINKS### Related news: ###NEWS_RELATED### ###GW1E###

###GW2B### <- Back to the news list ###GW2E###

### TEMPLATE_ARCHIVE

Subpart for the news archive menu.

###GW2B### ARCHIVE:###GW2E###
###GW2B######ARCHIVE_TITLE### - (###ARCHIVE_COUNT### items)###GW2E###

### TEMPLATE_ARCHIVE_NOITEMS

Shown if the archive has no items!

###GW2B### ARCHIVE:###GW2E###
###GW2B### The archive is empty! ###GW2E###

### TEMPLATE_SEARCH

Subpart for the search-form.