Some more things for Freemarker

git-svn-id: https://svn.libreccm.org/ccm/trunk@5902 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-04-02 18:04:08 +00:00
parent 4ed7bdd480
commit 232587146d
2 changed files with 12 additions and 0 deletions

View File

@ -187,3 +187,11 @@
</#if>
</#function>
<#function getNewsDateIso item>
<#if (item["./newsDate"]?size > 0)>
<#return item["./newsDate/@iso"]>
<#elseif (item["./nav:attribute[@name='newsDate']"]?size > 0)>
<#return item["./nav:attribute[@name='newsDate']/@iso"]>
</#if>
</#function>

View File

@ -15,6 +15,10 @@
</#macro>
<#function getContentItem>
<#return model["/bebop:page/cms:contentPanel/cms:item"]>
</#function>
<#--
Includes the template for the type of the provided content item
for the provided view and style. The paramters view and style are