From 742e0de0b7a4790e8dadc6b718dcacc3e2c7e0c7 Mon Sep 17 00:00:00 2001 From: Jens Pelzetter Date: Sat, 30 Nov 2019 18:26:23 +0100 Subject: [PATCH] FTL library file --- .../resources/themes/freemarker/utils.ftl | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 ccm-core/src/main/resources/themes/freemarker/utils.ftl diff --git a/ccm-core/src/main/resources/themes/freemarker/utils.ftl b/ccm-core/src/main/resources/themes/freemarker/utils.ftl new file mode 100644 index 000000000..3773593e1 --- /dev/null +++ b/ccm-core/src/main/resources/themes/freemarker/utils.ftl @@ -0,0 +1,24 @@ +<#--filedoc + Utility functions for Freemarker based themes. +--> + +<#--doc + Gets the application of the page served from the model. + + @return The current application. +--> +<#function getPageApplication> + <#return application> + + +<#--doc + Get the title of the current page. + + This will only work of the current page is a navigation page with a category + menu. + + @return The title of the current page +--> +<#function getPageTitle> + <#return title> + \ No newline at end of file