Magnolia 6.1 reached end of life on March 31, 2021. This branch is no longer supported, see End-of-life policy.
sitefn
templating functions provide information about the current site. You can access the Site
object and the Theme
currently applied to the site.
Gets the current Site
.
Site site()
none
Returns the current Site
.
sitefn.site()
[#assign mySite=sitefn.site()]
Gets the Site
of the passed content.
Site site(ContentMap content)
content | required The content map whose site you want to get. |
Returns the Site
of the passed ContentMap
.
sitefn.site(content)
[#assign currentSite = sitefn.site(content)]
Gets the Theme
of a Site
.
site | required The site whose theme you want to get. |
Returns a site's Theme
.
sitefn.theme(site)
[#assign currentTheme=sitefn.theme(sitefn.site(content))]