ABC CMS Pro
10.12.2004

Tags list for 'news' module

Note! Every template must begin with <%tloop section%> and finish with <%tendloop section%>
All the other tags are included between them

The module is used for posting the news. News are sorted out by categories.
For viewing a single news article or a news category use a template that is set at the admin panel for a news category

Note! Delete all comments (i.e. // Page text) before using the templates for site design

Tags are described below

// List latest news (only 1 from all categories)

<%tif latest_news%>
<%tloop latest_news%>


<%tlv head%> - head of news
<%tlv date%> - date of news
<%tlv date_time%> - date and time of news
<%tlv text_short%> - short text of news (number of chars in admin panel)
<%tlv cut%> - if text is cut off ( text_short ), then the value is 1
<%tlv text%> - text of news

// Small images
<%tloop small_images%>
<%tlv small_image%> // URL of small image - you can use in <a href='<%tlv small_image%>'>
<%tendloop small_images%>

// Big images
<%tloop big_images%>
<%tlv big_image%> // URL of big image - you can use in <a href='<%tlv big_image%>'>
<%tendloop big_images%>

// To full view of the selected news you must use the next link:
// You must replace '...' with needed section and page id's
// If you want you can use any tag or words instead of 'More...'

<a href="index.php?s=...&p=...&selected_news=<%tlv n%>">
More...
</a>

<%tendloop latest_news%>
<%tendif latest_news%>





// List all news categories with selected number of news

<%tloop news_categories%>

<%tlv name%> - name of a news category
<%tlv description%> - description of a news category
<%tlv active%> - status of a news category (active/inactive)

// To view news from selected category use the next link:
// If you don't need to use section and page you may remove dots from the expression '&s=...&p=...'
// If you need to use section and page you have to replace dots with section id and page id at the expression '&s=...&p=...'

<a href="index.php?news_category=<%tlv n%>&s=...&p=...">
<%tlv name%>
</a>


// List news in category

<%tloop news%>

// the same tags as in 'latest news' are used here

<%tendloop news%>


// Navigation bar

<%tif nav%><%tag nav_news%><%tendif nav%>

<%tendloop news_categories%>





// List news in selected news category

<%tloop selected_news_category%>


// the same tags as in 'List all news categories with selected number of news' are used here

<%tendloop selected_news_category%>





// List custom news category ( please replace # with selected category id )

<%tloop news_category_#%>

// The same tags as in 'List all news categories with selected number of news' are used here

<%tendloop news_category_#%>




// View selected news

<%tloop selected_news%>

// The same tags as in 'List latest news' are used here

<%tlendoop selected_news%>