[
http://jira.magnolia-cms.com/browse/BLOSSOM-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tobias Mattsson updated BLOSSOM-2:
----------------------------------
Attachment: ExtendedFreemarkerTemplateViewRenderer20.java
Attaching a version for Blossom 2.0, this is how to configure it (the only
changed thing compared to blossom-servlet.xml in the sample is the class
attribute that now says ExtendedFreemarkerTemplateViewRenderer20):
{code}
<!-- Renders all views that end with .ftl -->
<bean class="info.magnolia.module.blossom.view.TemplateViewResolver">
<property name="order" value="3"/>
<property name="prefix" value="/WEB-INF/templates/"/>
<property name="viewNames" value="*.ftl"/>
<property name="viewRenderer">
<bean
class="info.magnolia.module.blossom.view.ExtendedFreemarkerTemplateViewRenderer20">
<property name="contextAttributes">
<map>
<entry key="cms">
<bean
class="info.magnolia.rendering.renderer.ContextAttributeConfiguration">
<property name="name" value="cms"/>
<property name="componentClass"
value="info.magnolia.templating.freemarker.Directives"/>
</bean>
</entry>
<entry key="cmsfn">
<bean
class="info.magnolia.rendering.renderer.ContextAttributeConfiguration">
<property name="name" value="cmsfn"/>
<property name="componentClass"
value="info.magnolia.templating.functions.TemplatingFunctions"/>
</bean>
</entry>
</map>
</property>
</bean>
</property>
</bean>
{code}
> Expose spring bind directive in freemarker templates
> ----------------------------------------------------
>
> Key: BLOSSOM-2
> URL: http://jira.magnolia-cms.com/browse/BLOSSOM-2
> Project: Magnolia Blossom Module
> Issue Type: New Feature
> Reporter: Tobias Mattsson
> Assignee: Tobias Mattsson
> Priority: Minor
> Attachments: ExtendedFreemarkerParagraphViewRenderer.java,
> ExtendedFreemarkerTemplateViewRenderer.java,
> ExtendedFreemarkerTemplateViewRenderer20.java
>
>
> Needs to be available. In order to get it working we need to cusomize
> FreemarkerHelper.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------