<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- IMPORTANT: The stylesheet link below is only for testing the template file directly in a browser while editing it. On the website the css styles for tt_news have to be include with the static TS template "default CSS style (tt_news)" or with an external file (see tt_news/res/tt_news_v2_styles.css) which you include via TypoSript in the "page" object. --> <title>new News example template</title> <link href="../res/tt_news_tut_main_stylesheet.css" rel="stylesheet" type="text/css" /> </head> <body>


NEWS TEMPLATES

EXAMPLE




<pre> 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 NEWS_CATEGORY_ROOTLINE - category rootline 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 </pre>







TEMPLATE_LATEST

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



<!-- ###TEMPLATE_LATEST### begin This is the template for the latest news, typically displayed on a frontpage -->

Neuigkeiten

<!-- ###CONTENT### begin This is the part of the template substituted with the list of news: --> <!-- ###NEWS### begin Template for a single item -->

<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###-->

<!-- ###NEWS### end--> <!-- ###CONTENT### end --> weitere News...
<div style="clear: left"> <!-- ###TEMPLATE_LATEST### end -->







TEMPLATE_LIST

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



<!-- ###TEMPLATE_LIST### begin This is the template for the list of news in the archive or news page or search -->
###NEWS_CATEGORY_ROOTLINE### <!-- ###CONTENT### begin This is the part of the template substituted with the list of news: --> <!-- ###NEWS### begin Template for a single item -->

<span class="news-list-date">###NEWS_DATE###</span> <!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###-->

<!--###LINK_ITEM###-->###NEWS_IMAGE###<!--###LINK_ITEM###--> ###NEWS_SUBHEADER### ###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E###
<!-- ###NEWS### end--> <!-- ###CONTENT### end -->
###BROWSE_LINKS###
<!-- ###TEMPLATE_LIST### end -->







TEMPLATE_SINGLE

This subpart is used to display single news items


<!-- ###TEMPLATE_SINGLE### begin This subpart is used to display single news items -->
###NEWS_CATEGORY_ROOTLINE###
###NEWS_DATE### ###NEWS_TIME###

###NEWS_TITLE###

###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E### ###NEWS_SUBHEADER### ###NEWS_IMAGE### ###NEWS_CONTENT###
###ADDINFO_WRAP_B### ###TEXT_RELATED### ###NEWS_RELATED### ###TEXT_FILES### ###FILE_LINK### ###TEXT_LINKS### ###NEWS_LINKS### ###TEXT_RELATEDBYCATEGORY### ###NEWS_RELATEDBYCATEGORY### ###ADDINFO_WRAP_E### ###NEWS_SINGLE_PAGEBROWSER###
<!-- ###TEMPLATE_SINGLE### end -->





TEMPLATE_SINGLE_RECORDINSERT

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


###NEWS_DATE### ###NEWS_TIME### ###TEXT_NEWS_AGE### ###NEWS_AGE###

###NEWS_TITLE###

###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E### ###NEWS_AUTHOR### ###NEWS_SUBHEADER### ###NEWS_IMAGE### ###NEWS_CONTENT### ###ADDINFO_WRAP_B### ###TEXT_RELATED### ###NEWS_RELATED### ###TEXT_FILES### ###FILE_LINK### ###TEXT_LINKS### ###NEWS_LINKS### ###TEXT_RELATEDBYCATEGORY### ###NEWS_RELATEDBYCATEGORY### ###ADDINFO_WRAP_E### ###COMMENTS### ###NEWS_SINGLE_PAGEBROWSER###
<!-- ###TEMPLATE_SINGLE_RECORDINSERT### end -->




TEMPLATE_SINGLE_FORUM

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


###NEWS_DATE### ###NEWS_TIME### ###TEXT_NEWS_AGE### ###NEWS_AGE###

###NEWS_TITLE###

###CATWRAP_B### ###TEXT_CAT### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE### ###CATWRAP_E### ###NEWS_AUTHOR### ###NEWS_SUBHEADER### ###NEWS_IMAGE### ###NEWS_CONTENT###
<!-- ###TEMPLATE_SINGLE_FORUM### end -->







TEMPLATE_ARCHIVE

Subpart for the news archive menu.


<!-- ###TEMPLATE_ARCHIVE### begin Subpart for the news archive menu -->

###ARCHIVE_HEADER###

<!-- ###TEMPLATE_ARCHIVE### end -->







TEMPLATE_ARCHIVE_NOITEMS

Shown if the archive has no items!


<!-- ###TEMPLATE_ARCHIVE_NOITEMS### begin Shown if the archive has no items! -->

###ARCHIVE_HEADER###

<!-- ###TEMPLATE_ARCHIVE_NOITEMS### end -->







TEMPLATE_SEARCH

Subpart for the search-form.


<!-- ###TEMPLATE_SEARCH### begin Subpart for the search-form -->
<form method="post" action="###FORM_URL###"> <input size="30" maxlength="100" type="text" name="tx_ttnews[swords]" value="###SWORDS###" /> <span class="news-search-form-submit"><input type="submit" name="search" value="###SEARCH_BUTTON###" /></span> </form>
<!-- ###TEMPLATE_SEARCH### end -->


this is shown if the search result is empty


<!-- ###TEMPLATE_SEARCH_EMPTY### begin -->
###SEARCH_EMPTY_MSG###
<!-- ###TEMPLATE_SEARCH_EMPTY### end -->




TEMPLATE_HEADER_LIST

shows a list of news titles

<!-- ###TEMPLATE_HEADER_LIST### begin --> <!-- ###CONTENT### begin This is the part of the template substituted with the list of news: --> <!-- ###NEWS### begin Template for a single item -->
<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###-->
###NEWS_TIME###
###TEXT_CAT_LATEST### ###NEWS_CATEGORY### ###NEWS_CATEGORY_IMAGE###
<!-- ###NEWS### end--> <!-- ###CONTENT### end --> ###BROWSE_LINKS### <!-- ###TEMPLATE_HEADER_LIST### end -->




TEMPLATE_CAT_RELATED

shows a list of related news with the same category

<!-- ###TEMPLATE_CAT_RELATED### begin --> <!-- ###CONTENT### begin This is the part of the template substituted with the list of news: --> <!-- ###NEWS### begin Template for a single item --> ###GW2B###<!--###LINK_ITEM###-->###NEWS_TITLE###<!--###LINK_ITEM###--> ###NEWS_TIME### ###GW2E### <!-- ###NEWS### end--> <!-- ###CONTENT### end --> <!-- ###TEMPLATE_CAT_RELATED### end -->


</body> </html>