<#import "/ccm-core/user-banner.ftl" as UserBanner> <#import "/language.ftl" as Language> <#import "/utils.ftl" as Utils> <#import "/ccm-cms/pages.ftl" as Pages> <#import "/ccm-navigation/navigation.ftl" as Navigation> FTL Libs Devel

FTL Libs Test

ccm-core/user-banner.ftl as UserBanner

UserBanner.getGreeting
${UserBanner.getGreeting()}
UserBanner.isLoggedIn
${UserBanner.isLoggedIn()?c}
UserBanner.isAuthenticated
${UserBanner.isAuthenticated()?c}
UserBanner.isNotLoggedIn
${UserBanner.isNotLoggedIn()?c}
UserBanner.isNotAuthenticated
${UserBanner.isNotAuthenticated()?c}
UserBanner.getChangePasswordUrl
${UserBanner.getChangePasswordUrl()}
UserBanner.getLoginLink
${UserBanner.getLoginLink()}
UserBanner.getLogoutLink
${UserBanner.getLogoutLink()}
UserBanner.getScreenName
${UserBanner.getScreenName()}
UserBanner.getUserGivenName
${UserBanner.getUserGivenName()}
UserBanner.getUserFamilyName
${UserBanner.getUserFamilyName()}

language.ftl as Language

Language.getSupportedLanguages
<#list Language.getSupportedLanguages()>
    <#items as lang>
  • ${lang}
<#else> No supported languages
Language.getSupportedLanguages
<#list Language.getAvailableLanguages()>
    <#items as lang>
  • ${lang}
<#else> No languages available

utils.ftl as Utils

Utils.getPageApplication()
${Utils.getPageApplication()}
Utils.getPageTitle()
${Utils.getPageTitle()}
Utils.getSiteHostName()
${Utils.getSiteHostName()}
Utils.getSiteHDomain()
${Utils.getSiteDomain()}
Utils.getSiteName()
${Utils.getSiteName()!""}

ccm-cms/pages.ftl as Pages

Pages.getCategoryPath()
Path length: ${Pages.getCategoryPath()?size} <#list Pages.getCategoryPath()>
    <#items as cat>
  • Name
    ${cat.categoryName}
    Title
    ${cat.categoryTitle!""}
Pages.getPagePath()
Path length: ${Pages.getPagePath()?size} <#list Pages.getPagePath()>
    <#items as cat>
  • Name
    ${cat.categoryName}
    Title
    ${cat.categoryTitle!""}
Pages.isRootPage()
${Pages.isRootPage()?c}
Pages.getSelectedCategory()
<#if Pages.getSelectedCategory()??> ${Pages.getSelectedCategory().categoryName} <#else> No category selected.
Pages.getSelectedCategoryId()
${Pages.getSelectedCategoryId()}
Pages.getNavigationRootUrl()
${Pages.getNavigationRootUrl()}
Pages.getCategoryHierarchy()
<#list Pages.getCategoryHierarchy()>
    <#items as cat>
  • ${cat.categoryId}:${cat.categoryName}
<#else> No categories in hierarchy.
Pages.getIndexItem()
<#assign indexItem = Pages.getIndexItem()> <#if (indexItem?keys?size > 0)> ${indexItem.uuid}:${indexItem.name}:${indexItem.title} <#else> No index item

ccm-navigation/navigation.ftl as Navigation

Note: Deprecated, replaced by ccm-cms/pages.ftl

Navigation.getCategoryPath
Path length: ${Navigation.getCategoryPath()?size} <#list Navigation.getCategoryPath()>
    <#items as cat>
  • Name
    ${cat.categoryName}
    Title
    ${cat.categoryTitle!""}