|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.templating.AbstractRenderable info.magnolia.module.templating.Template info.magnolia.module.samples.templates.SampleTemplate
public class SampleTemplate
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
.
Constructor Summary | |
---|---|
SampleTemplate()
|
Method Summary | |
---|---|
java.lang.String |
getTitleSize()
|
void |
setTitleSize(java.lang.String titleSize)
|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SampleTemplate()
Method Detail |
---|
public java.lang.String getTitleSize()
public void setTitleSize(java.lang.String titleSize)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |