info.magnolia.module.samples.templates
Class SampleTemplate

java.lang.Object
  extended by info.magnolia.module.templating.AbstractRenderable
      extended by info.magnolia.module.templating.Template
          extended by info.magnolia.module.samples.templates.SampleTemplate
All Implemented Interfaces:
RenderableDefinition

public class SampleTemplate
extends Template

Demonstrates how to extend the default template to add some custom parameters. You can also add parameters without having to create a custom template class, by creating a content node 'parameters' in the template definition (modules/samples/templates/mysample/parameters) which you will be able to access it from the template definition like def.nameofparam.

Author:
tmiyar

Constructor Summary
SampleTemplate()
           
 
Method Summary
 String getTitleSize()
           
 void setTitleSize(String titleSize)
           
 
Methods inherited from class info.magnolia.module.templating.Template
addSubTemplate, getContent, getI18NTitle, getParameter, getPath, getSubTemplate, getSubTemplates, isAvailable, isVisible, setContent, setPath, setSubTemplates, setVisible
 
Methods inherited from class info.magnolia.module.templating.AbstractRenderable
determineTemplatePath, getDescription, getDialog, getI18nBasename, getModelClass, getName, getParameters, getTemplatePath, getTitle, getType, newModel, setDescription, setDialog, setI18nBasename, setModelClass, setName, setParameters, setTemplatePath, setTitle, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SampleTemplate

public SampleTemplate()
Method Detail

getTitleSize

public String getTitleSize()

setTitleSize

public void setTitleSize(String titleSize)


Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.