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.



Latest news:
###GW1B######NEWS_CATEGORY######GW1E######GW1B######NEWS_DATE######GW1E###
###GW2B######NEWS_TITLE######GW2E###
###NEWS_SUBHEADER###
Go to archive »








TEMPLATE_LIST

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



###GW1B######NEWS_CATEGORY######GW1E######GW1B######NEWS_DATE######GW1E###
###GW2B######NEWS_TITLE######GW2E###
###NEWS_IMAGE### ###NEWS_SUBHEADER###
mehr...
###GW2B###Prev ###BROWSE_LINKS### Next###GW2E###









TEMPLATE_SINGLE

This subpart is used to display single news items


###GW1B######NEWS_DATE######GW1E###
###GW1B######NEWS_CATEGORY######GW1E###
###GW2B######NEWS_TITLE######GW2E###
###NEWS_SUBHEADER###
###NEWS_IMAGE### ###NEWS_CONTENT### (###NEWS_AUTHOR###)
Links:
###NEWS_LINKS###
Related news:
###NEWS_RELATED###


###GW2B### « Back to the news list ###GW2E###







TEMPLATE_ARCHIVE

Subpart for the news archive menu.


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.