Tense Index: Templates

Tense Index uses a simple template system with XML-style tags. The majority of your template should look like a complete HTML page, with these tags mixed in. All of the tags follow the same basic format: <tenseindex:tagname attribute="value" /> It is important that your tags are… Continued »

Tag Reference

alternate Inserts its value every other time it is called. Useful for alternating colors or styles every other row. Attributes value: any string. The…

counter Inserts a number that increments by one each time it’s called. Useful for giving each item a unique ID or numbering a…

credit Inserts the Tense Index credit line that is required for free use. Attributes case: upper or lower. Will convert the output to uppercase or…

crumbs Inserts a list of “crumbs” showing where the current page is in relation to the rest of the site. Attributes case: upper or lower. Will convert…

filedate Inserts the date of the file. It must appear inside of a <tenseindex:files> tag. Attributes format: a date format following the rules of…

filedescription Inserts the description of the file. It must appear inside of a <tenseindex:files> tag. You can add a description to a file by creating a text…

fileimage Inserts a thumbnail if the file is an image. It must appear inside of a <tenseindex:files> tag. The image will be wrapped in a <div> with…

filelink Inserts a link to the file. It must appear inside of a <tenseindex:files> tag. Attributes class: any CSS class name. The default is…

filename Inserts the name of the file. It must appear inside of a <tenseindex:files> tag. Attributes plain: true or false. If set to true, the full…

filenew Inserts its value if the file is considered new. It must appear inside of a <tenseindex:files> tag. Attributes time: the time in which to…

files Inserts a list of files that are in the current directory. This tag should always have a start and end tag. Everything in between will be repeated…

filesize Inserts the size of the file. Attributes none Example <tenseindex:filesize />

fileurl Inserts the complete path to the file. Attributes none Example <tenseindex:fileurl /> Changes This tag was added in Tense Index 3.2.

folder Inserts the name of the current folder being viewed. Attributes case: upper or lower. Will convert the output to uppercase or lowercase. The…

footer Inserts an HTML paragraph tag, followed by the crumbs tag, then a line break, the credit tag, and a closing paragraph tag. Attributes See the…

gallery Inserts its contents if there are any files in the current directory that are images. It should always contain a <tenseindex:files> tag, and it…

header Inserts its contents if a HEADER file is found in the current folder. Use the headertext tag inside of this to display the actual text of the HEADER…

headertext Inserts the text of the HEADER file if one is found in the current folder. HEADER files are formatted like Smart HTML entries in Tense Log, meaning…

if Inserts its contents if its value satisfies the equation. Attributes value: the value to compare. If no other attributes are given and it is…

interval Inserts its contents each time a counter reaches the number specified. For example, if the count is set to 3, and the tag is placed inside of a…

list Inserts its contents if there are any files in the current directory that are not images. It should always contain a <tenseindex:files> tag,…

nofiles Inserts everything inside of it if the current directory does not have any…

onload Inserts JavaScript that should run after the page loads. If necessary you can insert your own JavaScript after…

readme Inserts its contents if a README file is found in the current folder. Use the readmetext tag inside of this to display the actual text of the README…

readmetext Inserts the text of the README file if one is found in the current folder. README files are formatted like Smart HTML entries in Tense Log, meaning…

server Inserts the name of the server, for example “www.tenseforms.com”. Attributes case: upper or lower. Will convert the output to uppercase or…

sortimage Inserts an image to indicate the direction the files are currently sorted in. Generally used next to a <tenseindex:sortlink> tag with the same…

sortlink Inserts a link that can be used to change the sort order of the files. If the type is set to date, for example, it will insert a link that can be…

You are here: Tense Code: Tense Index: Templates
Can't find what you're looking for? View a complete site map.