Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

what variables are available in the .ss templates?

Go to End

3 Posts   1817 Views


Forum Moderator, 224 Posts

7 September 2007 at 2:54pm


Please have a look at my basic template below. Is there a place where I can see what variables are available for my templates (e.g. $MetaTags) as well as things like <% control Menu(2) %> or <% if Children %>. It would just be super useful to have a "cheat sheet" where I could look up the various options available.



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns="" xml:lang="en" >
<% base_tag %>
<script src="$project/javascript/j.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="$project/css/typography.css" />
<link rel="stylesheet" type="text/css" href="$project/css/layout.css" />
<!--[if IE 6]><style type="text/css">@import url($project/css/ie6.css);</style><![endif]-->
<!--[if IE 7]><style type="text/css">@import url($project/css/ie7.css);</style><![endif]-->
<body onload="resizeAll();">
<div id="$pageCodeForCss">
<div id="topLeft"></div>
<div id="logo"><h1><a href="/">Winsborough Limited - Improving Performance</a></h1></div>
<div id="topRight"></div>
<div id="container">
<div class="clear"></div>
<div id="footer">
<% include menu3 %>
<div id="bottom"></div>


Forum Moderator, 5523 Posts

7 September 2007 at 4:01pm


Forum Moderator, 224 Posts

8 September 2007 at 3:35pm

thanks a million - that is great!