ABC CMS Pro
10.12.2004

Tags list for 'site' module


This is the main web site module. It posts the content, processes templates and performs other actions
Note! Every template must begin with <%tloop section%> and finish with <%tendloop section%>.
All the other tags are located between them.

The working procedure
Create sections at the admin panel. Added pages to sections. Set templates for every section. The templates are used for publishing pages' content within the section. Every template contains tags for information output.

There are several options for information output

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

Tags list is described below:


// Global section begin (current section) - required!!!

<%tloop section%>


//Current section tags ( inside <%tloop section%> and <%tendloop section%> tags )

<%tlv n%> // Section id
<%tlv name%> // Section name
<%tlv description%> // Section description
<%tlv active%> // Section activity
<%tlv meta_keywords%> // Section meta keywords
<%tlv meta_description%> // Section meta description
<%tlv meta_title%> // Section meta title
<%tlv link%> // Section link
<%tlv custom1%> // Section custom field #1
<%tlv custom2%> // Section custom field #2
<%tlv custom3%> // Section custom field #3
<%tlv custom4%> // Section custom field #4
<%tlv custom5%> // Section custom field #5




// Current page ( inside <%tloop section%> and <%tendloop section%> tags )

<%tloop page%>

// Inside <%tloop page%> and <%tendloop page%>

<%tlv n%> // Page id
<%tlv sn%> // Page section id
<%tlv name%> // Page name
<%tlv description%> // Page description
<%tlv active%> // Page activity
<%tlv text%> // Page text
<%tlv link%> // Page link
<%tlv image%> // Page design image
<%tlv custom1%> // Page custom field #1
<%tlv custom2%> // Page custom field #2
<%tlv custom3%> // Page custom field #3
<%tlv custom4%> // Page custom field #4
<%tlv custom5%> // Page custom field #5

// To post the link to view a chosen page use the following

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

// you can set section's id to know which section (template) to load

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


<%tendloop page%>




// Custom section ( with selected id - # must be replaced with section id )

<%tloop custom_section_#%>

// You can use here all tags from 'current section' ( <%tlv n%>, <%tlv name%>, etc. )

// Pages list from selected section

<%tloop pages%>

// You can use here all tags from 'current page' ( <%tlv n%>, <%tlv name%>, <%tlv text%> etc. )

<%tlv short_text%> // Short text (chars number from admin panel)
<%tlv selected%> // If this page is current - selected = 1

<%tendloop pages%>


<%tendloop custom_section_#%>




// Menu tags

<%tloop menu%>

// You can use here all tags from 'current section' ( <%tlv n%>, <%tlv name%>, etc. )

// Pages list for looped section in menu

<%tloop pages%>

// You can use here all tags from 'current page' ( <%tlv n%>, <%tlv name%>, <%tlv text%> etc. )

<%tlv short_text%> // Short text (chars number from admin panel)
<%tlv selected%> // If this page is current - selected = 1

<%tendloop pages%>

<%tendloop menu%>




// Additional tags

<%tv s%> // Current section id
<%tv p%> // Current page id

<%tv current_year%> // Current year
<%tv current_month%> // Current month
<%tv current_day%> // Current day of month
<%tv current_hour%> // Current hour
<%tv current_min%> // Current minute
<%tv current_sec%> // Current second
<%tv remote_ip%> // Remote IP
<%tv http_referer%> // HTTP Referer


//Global section end (current section) - required!!!

<%tendloop section%>