Some additional functions for Freemarker

git-svn-id: https://svn.libreccm.org/ccm/trunk@5895 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2019-03-30 11:41:40 +00:00
parent c6a23df369
commit b84eb95fa7
2 changed files with 11 additions and 0 deletions

View File

@ -41,6 +41,10 @@
<#return category["./@id"]> <#return category["./@id"]>
</#function> </#function>
<#function isCategorySelected category>
<#return (category["./@isSelected='true'"] == true)>
</#function>
<#-- <#--
Get the URL of the root category of the navigation with the provided id. Get the URL of the root category of the navigation with the provided id.
--> -->

View File

@ -10,6 +10,13 @@
${model["//nav:categoryMenu/nav:category/@title"]} ${model["//nav:categoryMenu/nav:category/@title"]}
</#macro> </#macro>
<#--
Gets the application of the page served from the model
-->
<#function getPageApplication>
<#return model["/bebop:page/@application"]>
</#function>
<#function getPageTitle> <#function getPageTitle>
<#return model["//nav:categoryMenu/nav:category/@title"]> <#return model["//nav:categoryMenu/nav:category/@title"]>
</#function> </#function>