info.magnolia.module.samples.templates
Class SampleTemplate
java.lang.Object
info.magnolia.rendering.template.configured.ConfiguredRenderableDefinition
info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition
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$
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 interface info.magnolia.rendering.template.RenderableDefinition |
getAutoGeneration, getDescription, getI18nBasename, getId, getModelClass, getName, getParameters, getRenderType, getTemplateScript, getTitle, getVariations, setId |
SampleTemplate
public SampleTemplate()
getTitleSize
public String getTitleSize()
setTitleSize
public void setTitleSize(String titleSize)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.