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, 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 interface info.magnolia.rendering.template.RenderableDefinition |
getAutoGeneration, getAutoPopulateFromRequest, getDescription, getI18nBasename, getId, getModelClass, getName, getParameters, getRenderType, getTemplateScript, getTitle, getVariations, setId |
SampleTemplate
public SampleTemplate()
- Deprecated. use
SampleTemplate(TemplateAvailability templateAvailability)
SampleTemplate
@Inject
public SampleTemplate(TemplateAvailability templateAvailability)
getTitleSize
public String getTitleSize()
setTitleSize
public void setTitleSize(String titleSize)
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.