Collection websites
Example website navbar for a collection website page. All hotels share the same detail page, the same templates for rooms, etc
Group homepage
ββ Group contact page
ββ Special offers (list of offers at group level)
ββ Hotel Detail Page
β ββ Rooms List (for hotel)
β β ββ Room detail page
β ββ Restaurants list (for hotel)
β β ββ Restaurant detail page
β ββ Contact page (for hotel)
Accessing the hotel in context
While building a collection website, sometimes you will want to show the hotel name in the header for all pages of the hotel.
ββ Hotel Detail Page
β ββ Rooms List (for hotel)
β β ββ Room detail page
β ββ Restaurants list (for hotel)
β β ββ Restaurant detail page
β ββ Contact page (for hotel)
You could do {{item.name}}
, but this would show the name of the item in context
-> on a hotel detail page you would have the correct name
-> but on a room detail page, it will show the name of room, instead of the name of the hotel
To access the hotel in context (only for Collection website), you can use {{item-hotel.XX}}
This if
will be displayed only if you are on a hotel detail page, or children's pages of the hotel
{if=" '{{item-hotel.id}}' "}
{{item-hotel.name}}
{{item-hotel.short_description}}
etc...
{/if}
Last updated