You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tracend edited this page Jan 1, 2012
·
10 revisions
You can assume templates are the different layouts a website has. In most cases all templates have the same theme and thus use most of the same assets.
Generally a user expects only one theme for every website, so to keep the web root clean from files that are not used, mutli-theme support is out of scope.
There are three main methods you can call to display the Template() content in your template - head(), body() and foot()
Template:head()
This generates the content for the head tag - meta tags, links to css and more. All controllers/plugins that have a head.php view will be compiled and output through here.
Template:body()
The body() method generates the main content area, looping through all the data sets, gathered by the controller, while applying the view individually selected for each one.
Template::foot()
Not to be confused with the footer tag , here is where all the script files are included.
Adding new templates is as simple as creating new files in the "html/template/" folder. They will appear automatically when you are editing a page, where you'll have the opportunity to pick a different template for every page.