{{website}} object

WIP (copy / paste from Slack discussion)

You can access information about the website:

Description

{{website.google_map_key}}

Google Map API key from website parameters

{{website.version}}

unique id, example: a74f28f3f2fbac5cd9b7b761c6b2b4c2

this is updated each time the theme is updated

{{website.item}}

Hotel / Brand or Master brand linked to the website. This will return you either an hotel, brand or master_brand object

website.item

We use {{website.item.name}}, {{website.item.email}}, etc... to get information about the item linked to the websiteFor example if this is an hotel website, it will take the name of the hotel, If this is a brand website, it will take name of the brand, etc...You have access to all the fields that your item have. So if this an hotel, all the data of the hotel. If this is a brand, all the data of the brand. If this is a MB, all the data of the master brand

Access to the master brand from an hotel/brand website

If you are on a hotel website : {{website.item.brand.master_brand}} If you are on a brand website: {{website.item.master_brand}}

To check what kind of website you have:

{{website.item_type_id}}
1 = master brand
2 = brand
3 = hotel

Domain variables

Domain variables

Last updated