Site

On this page

Overview 

Below you can see all the available drops on the site object


Name Description
site.id ID of site
site.name Name of site
site.domain Currently unavailable
site.subdomain Subdomain of page eg. developers
site.theme_site_id ID of theme site. Only available if page is a theme site
site.default_locale Current locale eg. en for english 
site.properties Object with site properties
site.grouped_pages Group pages by first letter
site.all_pages All pages
site.published_editables Get published editableds content
site.saved_editables Get saved editableds content
site.locales Return available site locales
site.root Returns root page in the page hierarchy
site.translations Returns object with all translations on site
site.booking_locations Returns all booking locations
site.booking_products Returns all booking products
site.localized_locales Returns all locales on site
site.surveys Returns all surveys

 

Access the site properties

{{ site.properties['my_property_name'] }}

 

Check if the site has the webshop module

{{ site.has_module.webshop }}

 

Check if the site has the article module

{{ site.has_module.articles }}

Updated: 2020-12-01