Gossamer Links Help


Table of Contents

Template Tags

A common question we get is what tags are available on each template. In the default template set, each template has a comment listing what tags are unique to that template. However, there are many more tags available.

Seeing tags available:
To see what tags are available on a page, you can put <%GT::Template::dump%> anywhere in your template, and when it is parsed, that will get replaced with a nice html table of the tag name and the current value. If you use this, and the page.cgi (dynamic view) it makes building your site very easy.

Global Tags:
Every template has all the tags defined in Build->Template Globals available. Also available on all templates is all the User properties of the currently logged in user. So you could add:

<%if Username%>
   Welcome <%Name%>!
<%endif%>

As the Username variable is only available if there is a logged in user.

Table of Contents