NEWS TEMPLATES

EXAMPLE





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_CATEGORY_IMAGE - news item category image
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

News Language Markers (see pi/locallang.php):
LATEST_HEADER - header for the LATEST element
GOTOARCHIVE - link to archive page in latest template
ARCHIVE_HEADER - same for AMENU
MORE - more ;-)
TEXT_CAT - text output before categories and category images in LIST view (eg: 'categories:')
TEXT_CAT_LATEST - the same in a shorter form for the LATEST element (eg: 'cat:')
BACK_TO_LIST - link back to list-view in single-view template
ARCHIVE_EMPTY_MSG - no items in archive
SEARCH_EMPTY_MSG - message for empty search results
TEXT_NEWS_AGE - text inserted before the age of the news item 


Wrapped Subparts:
LINK_ITEM - link to the news item single display
LINK_PREV - used in the pagebrowser
BROWSE_LINKS - used in the pagebrowser
LINK_NEXT - used in the pagebrowser








TEMPLATE_LATEST

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



###EVENT_FROM_DATE### - ###EVENT_TO_DATE###

###NEWS_TITLE###

###NEWS_IMAGE######EVENT_WHERE###<br />###NEWS_SUBHEADER### ###CATWRAP_B### ###TEXT_CAT_LATEST### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###








TEMPLATE_LIST

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



###EVENT_FROM_DATE### - ###EVENT_TO_DATE### ###NEWS_TITLE### ###NEWS_AUTHOR###

###NEWS_IMAGE### ###EVENT_WHERE###
###NEWS_SUBHEADER### ###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
###BROWSE_LINKS###








TEMPLATE_SINGLE

This subpart is used to display single news items


###EVENT_FROM_DATE### - ###EVENT_TO_DATE###

###NEWS_TITLE###

###EVENT_WHERE###
###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E### ###NEWS_AUTHOR### ###NEWS_IMAGE### ###NEWS_CONTENT###
###ADDINFO_WRAP_B### ###TEXT_RELATED### ###NEWS_RELATED### ###TEXT_FILES### ###FILE_LINK### ###TEXT_LINKS### ###NEWS_LINKS### ###ADDINFO_WRAP_E###






TEMPLATE_SINGLE_RECORDINSERT

This subpart is used to display single news items with the "Insert Records" content element


###NEWS_DATE### ###NEWS_TIME###

###NEWS_TITLE###

###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E### ###NEWS_AUTHOR### ###NEWS_IMAGE### ###NEWS_CONTENT### ###ADDINFO_WRAP_B### ###TEXT_RELATED### ###NEWS_RELATED### ###TEXT_FILES### ###FILE_LINK### ###TEXT_LINKS### ###NEWS_LINKS### ###ADDINFO_WRAP_E### ###COMMENTS###





TEMPLATE_SINGLE_FORUM

This subpart is used to display single news items with the "Insert Records" content element


###NEWS_DATE### ###NEWS_TIME###

###NEWS_TITLE###

###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E### ###NEWS_AUTHOR### ###NEWS_IMAGE### ###NEWS_CONTENT###








TEMPLATE_ARCHIVE

Subpart for the news archive menu.


###ARCHIVE_HEADER###









TEMPLATE_ARCHIVE_NOITEMS

Shown if the archive has no items!


###ARCHIVE_HEADER###









TEMPLATE_SEARCH

Subpart for the search-form.





this is shown if the search result is empty


###SEARCH_EMPTY_MSG###





TEMPLATE_HEADER_LIST

shows a list of news titles

###NEWS_TITLE###
###NEWS_TIME###
###TEXT_CAT_LATEST### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE###
###BROWSE_LINKS###