Further Explaination of sitemap_tpl.html
« on: November 07, 2007, 03:20:47 AM »
Since we aren't allowed to see the source, the manual claims there are XX tags. I looked at the examples in the tpl, and have some direction, but i am trying to figure out what other options there are.

Could you please expand on what tags are supported, and their use?

Currently I am trying to convert my template to something more semantic.

"The basic template commands are:
<TLOOP XX>...</TLOOP> - defines a repeating sequence of code (like page numbers or sitemap links)
<TIF XX>...</TIF> - defines a conditional statement that is inserted only when a specific term is met
<TVAR XX> - inserts a value of a specified variable
Please refer to sitemap_tpl.html file for usage example. "

what are valid commands for XX? are they all in the tpl?
« Last Edit: November 07, 2007, 03:30:59 AM by will1 »
Re: Further Explaination of sitemap_tpl.html
« Reply #1 on: November 08, 2007, 11:49:43 PM »
Hello,

allowed variables are only those that are already presented in default template:

for <TVAR> tag:
- LASTUPDATE (last update date)
- TOTALURLS (total pages in sitemap)
- num (page number)
- link (page link)
- folder (subfolder name)
- cnt (pages number in subfolder)
- title_clean (title with stripped html tags)
- title (page title)

for <TLOOP> tag:
- APAGER (multiple pages links)
- slots (folders structure)
- alevel (directory depth level)
- pages (URLs indexed in current subfolder)
Re: Further Explaination of sitemap_tpl.html
« Reply #2 on: November 14, 2007, 05:57:48 AM »
what about <TIF> ? what does it support?
Re: Further Explaination of sitemap_tpl.html
« Reply #3 on: November 15, 2007, 03:14:19 AM »
This is a conditional statement.

This block will be only inserted when pages list is presented:
<TIF APAGER>
</TIF>
Re: Further Explaination of sitemap_tpl.html
« Reply #4 on: November 16, 2007, 04:13:09 AM »
<TIF current>[<TVAR num>]<TELSE><a href="<TVAR link>"><TVAR num></a></TIF>

Is there a command to something similar for pages or slots?