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()
          Deprecated. use SampleTemplate(TemplateAvailability templateAvailability)
SampleTemplate(TemplateAvailability templateAvailability)
           
 
Method Summary
 String getTitleSize()
           
 void setTitleSize(String titleSize)
           
 
Methods inherited from class info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition
addArea, getAreas, getDeletable, getDialog, getEditable, getMoveable, getTemplateAvailability, getVisible, getWritable, setAreas, setDeletable, setDialog, setEditable, setMoveable, setTemplateAvailability, setVisible, setWritable
 
Methods inherited from class info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
addParameter, addVariation, getAutoGeneration, getAutoPopulateFromRequest, getDescription, getI18nBasename, getId, getModelClass, getName, getParameters, getRenderType, getTemplateScript, getTitle, getVariations, setAutoGeneration, setAutoPopulateFromRequest, 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, getAutoPopulateFromRequest, getDescription, getI18nBasename, getId, getModelClass, getName, getParameters, getRenderType, getTemplateScript, getTitle, getVariations, setId
 

Constructor Detail

SampleTemplate

public SampleTemplate()
Deprecated. use SampleTemplate(TemplateAvailability templateAvailability)


SampleTemplate

@Inject
public SampleTemplate(TemplateAvailability templateAvailability)
Method Detail

getTitleSize

public String getTitleSize()

setTitleSize

public void setTitleSize(String titleSize)


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.