Tense Log: Templates

Tense Log 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: <tenselog:tagname attribute="value" /> It is important that your tags are well… 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…

author Inserts the author of the entry. It must appear inside of a <tenselog:entries> tag. Attributes label: a text label to display before the…

base Inserts the base URL for Tense Log. Useful if you want to link to your Tense Log home page with the login area and list of recent entries. Note that…

categories Inserts a list of categories for the log. Categories are divided into sections based on their order numbers. If the order number of an entry is more…

category Inserts the name of the current category. Attributes case: upper or lower. Will convert the output to uppercase or lowercase. The default is…

categoryid Inserts an ID that in most cases will be unique to the category. It simply uses the directory name, with slashes converted to…

commentcontact Inserts a link to a form to email the person that posted the comment. It must appear inside of a <tenselog:comments> tag. This is strongly…

commentdate Inserts the date of the comment. It must appear inside of a <tenselog:comments> tag. Attributes format: a date format following the rules…

commentemail Inserts the URL of the contact form used by the commentcontact tag. In most cases it is recommended that you use commentcontact instead. Use…

commentemailaddress Inserts the email address of the person that posted the comment. It must appear inside of a <tenselog:comments> tag. Displaying email addresses…

commentform Inserts its contents if an entry is being viewed, and comments are open for that entry. Otherwise it’s contents are not…

commentid Inserts the unique ID number of the comment. It must appear inside of a <tenselog:comments> tag. Attributes none Example <div…

commentmessage Inserts a message giving different feedback on the comment. It must appear inside of a <tenselog:comments> tag. It should always be included in…

commentname Inserts the name of the person that posted the comment. It must appear inside of a <tenselog:comments> tag. Attributes case: upper or…

commentpreview Inserts the HTML area where the live comment preview will be displayed. It should always be included in your template if comments will be enabled,…

comments Inserts a list of comments on the current entry. This tag should always have a start and end tag. Everything in between will be repeated for each…

commentsarea Inserts its contents if an entry is being viewed, and comments are set to display for that entry. Otherwise it’s contents are not…

commentsite Inserts the URL of the site that was posted with the comment. It must appear inside of a <tenselog:comments> tag. Note that it will not insert…

commentslink Inserts a link to view comments on the entry when appropriate. It must appear inside of a <tenselog:entries> tag. Note that it will not insert…

commentstext Inserts appropriate text that can be used to link to comments on the entry. It must appear inside of a <tenselog:entries> tag. Note that it…

commenttext Inserts the text of a comment. It must appear inside of a <tenselog:comments> tag. Attributes width: the width of any images that are…

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

createlink Inserts an HTML link created with the specified values. This allows much greater control than simply creating a link manually. Attributes href:…

credit Inserts the Tense Log 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…

description Inserts the description of the log. This description can be changed in the General section of the Options page in your log. Attributes case:…

dir Inserts the directory of the current category. Attributes none Example <a…

enclosure Inserts an enclosure for an RSS feed. Please note that this tag is somewhat experimental and should be used with caution. Particularly useful for…

entries Inserts a list of entries that are in the current category (or the specified directory). This tag should always have a start and end tag. Everything…

entrycount Inserts the number of entries in the current category. Attributes none Example <tenselog:if…

entrydate Inserts the date of the entry. If the entry is an event, the end date is displayed as well. It must appear inside of a <tenselog:entries>…

entryenddate Inserts the end date of the entry, if it has one. It must appear inside of a <tenselog:entries> tag. Attributes format: a date format…

entryfeed Inserts the URL of an RSS feed that includes the entry itself and comments on that entry. It must appear inside of a <tenselog:entries> tag….

entryid Inserts the unique ID number of the entry. It must appear inside of a <tenselog:entries> tag. Attributes none Example <div…

entryimage Inserts a thumbnail if the entry has an image saved with it. It must appear inside of a <tenselog:entries> tag. The image will be wrapped in a…

entryimagename Inserts the file name of the image, if an image was saved with the entry. It must appear inside of a <tenselog:entries>…

entrylink Inserts the entry’s link, if one was saved with the entry. It must appear inside of a <tenselog:entries> tag. Note that it will not insert the…

entrylinks Inserts a list of links for the entry. It must appear inside of a <tenselog:entries> tag. If the Link field was filled in for the entry, a link…

entrypage Inserts the page name of the entry. It must appear inside of a <tenselog:entries> tag. Attributes none Example <div…

entrytext Inserts the text of an entry. It must appear inside of a <tenselog:entries> tag. Attributes plain: true or false. When set to true, it will…

entrytitle Inserts the title of the entry. It must appear inside of a <tenselog:entries> tag. Attributes case: upper or lower. Will convert the output…

entryupdated Inserts the date the entry was last updated. It must appear inside of a <tenselog:entries> tag. Attributes format: a date format following…

filedunder Inserts a list of categories that the entry is filed under. Each category in the list will be linked to that category. It must appear inside of a…

flexdata Inserts only the data or value of a single flex field. It must appear inside of a <tenselog:entries> tag. Use flexfield to insert a label…

flexfield Inserts a single flex field. It must appear inside of a <tenselog:entries> tag. The output is wrapped in a <div> tag with the class…

flexfields Inserts a list of flex fields for the entry. It must appear inside of a <tenselog:entries> tag. The links are surrounded by paragraph tags, and…

focusfield This tag is deprecated; it is no longer recommended for use. Please use the onload tag instead.

footer Inserts an HTML paragraph tag, followed by the crumbs tag, then a line break, then a contact link if the log has an email address, then the credit…

formemail Inserts the appropriate value for the email field in the comment form. Attributes none Example <input size="30"…

formformatting Inserts a “Add Markup?” link that can be used to format text in the comment field. Attributes none Example <textarea…

formmessage Inserts a message that gives feedback on the posting of a comment. The message will be wrapped in a <div> tag with the ID “commentmessage” and…

formname Inserts the appropriate value for the name field in the comment form. Attributes none Example <input size="30"…

formrememberlink Inserts a link that can be clicked to toggle whether or not the name, email, and web site fields should be remembered when the comment form is…

formrememberlink Inserts “true” or nothing, depending on whether the comment form values are set to be remembered. Attributes none Example <input…

formsite Inserts the appropriate value for the web site field in the comment form. Attributes none Example <input size="30"…

formtext Inserts the appropriate value for the comment text field in the comment form. Attributes none Example <textarea id="formtext"…

htmlentities Encodes its contents using HTML entities where appropriate. It should always have a start and end tag. Particularly useful for RSS feeds, where the…

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…

image Inserts a thumbnail for the specified image that can be clicked to view it full size. The image will be wrapped in a <div> with the specified…

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…

link Inserts a smart link to the specified file. If the file is an image, it will open in a popup window. Other files will simply open normally. If the…

log Inserts the unique ID of the log. Limited in usefulness. Note that if you are creating a link to your log, it is recommend that you use logurl…

logcontact Inserts a link to a form to email the owner of the log. This is strongly recommended over a standard email link, as it protects your address from…

logemail Inserts the URL of the contact form used by the logcontact tag. In most cases it is recommended that you use logcontact…

logtitle Inserts the title of the log. This title can be changed in the General section of the Options page in your log. Attributes case: upper or lower….

logurl Inserts the address of the home page of your log. Attributes none Example <a href="{tenselog:logurl}">Return to the…

meta This tag will insert the description meta tag, a meta tag to prevent the Internet Explorer image toolbar from appearing, and a meta tag to prevent…

months Inserts a list of months and years, if the category has been set to divide into months. See the Categories section of the Options page in your log to…

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

pages Inserts a set of links that can be used to page through the entries in a category. You can customize the display of these links in the General…

pagetitle Inserts a page title, as a list of “crumbs” showing where the current page is in relation to the rest of the site. Almost identical to the crumbs…

pastevent Inserts its value if the date of the entry is in the past. Attributes value: the text to insert if the event is in the past. The default is…

permalink Inserts a permanent link to the entry, where the entry and any comments on it can be viewed. It must appear inside of a <tenselog:entries>…

recententries Inserts a list of recent entries. Attributes dir: the directory of the category to display entries from. Groups will not work. The default is to…

searchaction Inserts the appropriate action value for a search form. Attributes none Example <form id="search" method="get"…

searchbox Inserts a field that can be used to search the current category. Attributes label: any text to display below the field. The text is clicked to…

searchtext Inserts the text that was searched for, if any. Useful for creating your own search field. Attributes none Example <form…

upcomingevents Inserts a list of upcoming events, if the log has any entries that are marked as events. Attributes dir: the directory of the category to display…

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