info.magnolia.module.samples.templates
Class SampleTemplate
java.lang.Object
info.magnolia.module.templating.AbstractRenderable
info.magnolia.module.templating.Template
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
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 |
SampleTemplate
public SampleTemplate()
getTitleSize
public String getTitleSize()
setTitleSize
public void setTitleSize(String titleSize)
Copyright © 2003-2012 Magnolia International Ltd.. All Rights Reserved.