diff --git a/ccm-navigation/web/themes/freemarker/ccm-navigation/Navigation.ftl b/ccm-navigation/web/themes/freemarker/ccm-navigation/Navigation.ftl index 6d4141ba9..2e4fa9c94 100644 --- a/ccm-navigation/web/themes/freemarker/ccm-navigation/Navigation.ftl +++ b/ccm-navigation/web/themes/freemarker/ccm-navigation/Navigation.ftl @@ -41,6 +41,10 @@ <#return category["./@id"]> +<#function isCategorySelected category> + <#return (category["./@isSelected='true'"] == true)> + + <#-- Get the URL of the root category of the navigation with the provided id. --> diff --git a/ccm-themedirector/web/themes/freemarker/Utils.ftl b/ccm-themedirector/web/themes/freemarker/Utils.ftl index f014bbc45..fc9c50d2e 100644 --- a/ccm-themedirector/web/themes/freemarker/Utils.ftl +++ b/ccm-themedirector/web/themes/freemarker/Utils.ftl @@ -10,6 +10,13 @@ ${model["//nav:categoryMenu/nav:category/@title"]} +<#-- + Gets the application of the page served from the model +--> +<#function getPageApplication> + <#return model["/bebop:page/@application"]> + + <#function getPageTitle> <#return model["//nav:categoryMenu/nav:category/@title"]>