Some additional functions for Freemarker
git-svn-id: https://svn.libreccm.org/ccm/trunk@5895 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
c6a23df369
commit
b84eb95fa7
|
|
@ -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.
|
||||||
-->
|
-->
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue