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