info.magnolia.module.samples.templates
Class SampleTemplate

java.lang.Object
  extended by info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
      extended by info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition
          extended by info.magnolia.module.samples.templates.SampleTemplate
All Implemented Interfaces:
RenderableDefinition, TemplateDefinition

public class SampleTemplate
extends ConfiguredTemplateDefinition

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/pages/mysamplePage/parameters) which you will be able to access it from the template definition like def.parameters.nameOfParam.

Version:
$Id$

Field Summary
 
Fields inherited from class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
parameters
 
Constructor Summary
SampleTemplate()
           
 
Method Summary
 String getTitleSize()
           
 void setTitleSize(String titleSize)
           
 
Methods inherited from class info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition
addArea, getAreas, getDialog, getEditable, getTemplateAvailability, getVisible, setAreas, setDialog, setEditable, setTemplateAvailability, setVisible
 
Methods inherited from class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
addParameter, addVariation, getAutoGeneration, getDescription, getI18nBasename, getId, getModelClass, getName, getParameters, getRenderType, getTemplateScript, getTitle, getVariations, setAutoGeneration, setDescription, setI18nBasename, setId, setModelClass, setName, setParameters, setRenderType, setTemplateScript, setTitle, setVariations, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface info.magnolia.rendering.template.RenderableDefinition
getAutoGeneration, getDescription, getI18nBasename, getId, getModelClass, getName, getParameters, getRenderType, getTemplateScript, getTitle, getVariations, setId
 

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.