These variables are available anywhere!
In this article
Site
The site variable contains information related to your site and is available for every page in your theme.
Locator | Description |
site.subdomain | {String} Get your site's current subdomain |
site.site_wide_footer_scripts | {String} Get your site's current footer scripts |
site.has_site_wide_footer_scripts | {Boolean} Does your site have site wide footer |
site.order_tracking_code | {String} Get your site's order tracking code |
site.signup_tracking_code | {String} Get your site's signup tracking code |
site.has_google_verification_meta_tag | {Boolean} Does your site have a google |
site.google_verification_meta_tag | {String} Get your site's current google verification |
site.current_user | {Drops::User} Get the current logged-in user |
site.currency | {String} Get the site's currency |
site.collections | {Drops::Collection} Get the site's collections |
site.copyright | {String} Get the site's copyright (© Copyright {{ tenants name }} |
site.has_home_header | {Boolean} Does the site have a home header? True or false |
site.has_home_subheader | {Boolean} Does the site have a home subheader? Otherwise known |
site.home_header | {String} Get the site's home header |
site.home_subheader | {String} Get the site's home subheader/subtitle |
site.support_email | {String} Get the site's support email |
site.has_terms | {Boolean} Does the site have terms and conditions? True or false |
site.has_privacy_policy | {Boolean} Does the site have a privacy policy? True or false |
site.has_logo | {Boolean} Does the site have a logo? True or false |
site.has_banner | {Boolean} Does the site have a banner image? True or false |
site.white_labelling_activated | {Boolean} Does the tenant have white-labelling |
site.name | {String} Get the name of the tenant's school |
site.has_custom_left_links | {Boolean} Does the site have custom links for the left? |
site.custom_left_links | {Drops::CustomLink} Get the site's custom left links |
site.has_custom_right_links | {Boolean} Does the site have custom links for the right? |
site.custom_right_links | {Drops::CustomLink} Get the site's custom right links |
site.remote_signin_enabled | {Boolean} Does the tenant have remote sign-in enabled? |
site.invisible_recaptcha_enabled | {Boolean} Does the tenant have invisible reCaptcha |
site.invisible_recaptcha_key | {String} Gets the public key used for the invisible |
site.signup_recaptcha_enabled | {Boolean} Does the tenant have reCaptcha enabled? |
site.signup_recaptcha_key | {String} Gets the public key used for the sign up reCaptcha |
site.certificates_enabled | {Boolean} Does the tenant have certificates enabled? |
site.products | {Drops::Product} All products for the current site |
site.has_non_hidden_published_products | {Boolean} Does the tenant have any non-hidden |
site.banner_url | {String} Get the banner image url |
site.logo_url | {String} Get the logo image url |
site.dashboard_url | {String} Get the dashboard url |
site.course_administrator_dashboard_url | {String} Get the course administrator |
site.affiliate_dashboard_url | {String} Get the affiliate dashboard url |
site.sign_out_url | {String} Get the sign-out url |
site.privacy_policy_url | {String} Get the privacy policy url |
site.terms_url | {String} Get the terms and conditions url |
site.home_url | {String} Get the home page url |
site.root_url | {String} Get the root site page url |
site.collections_url | {String} Get the site collections url |
site.student_dashboard_url | {String} Get the student dashboard url |
site.sign_in_url | {String} Get the sign-in url |
site.account_edit_url | {String} Get the account edit url |
site.account_edit_password_url | {String} Get the account password edit url |
site.account_certificates_url | {String} Get the account certificates url |
site.account_notifications_edit_url | {String} Get the account edit notifications url |
site.account_billings_url | {String} Get the account billings url |
site.account_orders_url | {String} Get the account orders url |
site.affiliate_root_url | {String} Get the affiliate index url |
site.affiliate_links_url | {String} Get the affiliate links url |
site.affiliate_reports_url | {String} Get the affiliate reports url |
site.edit_affiliate_settings_url | {String} Get the affiliate settings url |
community_landing_pages_enabled | {Boolean} Does the tenant have Community pages enabled? |
Theme
The theme variable contains settings related to your theme and is available on every page in your theme.
Locator | Description |
theme.name | {String} Get the theme's name |
theme.author | {String} Get the theme's author |
theme.version | {String} Get the theme's version |
theme.documentation_url | {String} Get the theme's documentation url |
theme.preset_name | {String} Get the name of the theme's preset |
theme.support_url | {String} Get the theme's support url |
theme.style | {String} Get the compiled CSS for the theme |
theme.settings | {Drops::Manifest} Get the theme's settings, defined in the theme's manifest |
Base Page
These are available on any page
Locator | Description |
page.page_identifier | {String} The identifier of the page. Signals liquid to render a particular template |
page.header_required | {Boolean} Override if you have a page that should not show the header |
page.footer_required | {Boolean} Override if you have a page that should not show the footer |
page.header_without_links_required | {Boolean} Override if you have a page that should show the header with no links. For example, the checkout or the signin/signup pages |
page.title | {String} Page's title |
page.current_url | {String} Page's current url |
page.meta | {Array} Page's metadata |