Room Amenities

Room amenities are created at Master Brand level. Each MB can create its own amenity list. This gives a lot of flexibility to each Master Brand, to have their own list.

To ease standardization, you can link an amenity to the default library of amenities

Default library

To make standardization easier, users have access to a "default library for amenities"

  • default name

  • default SVG

  • default OTA (amenity identifier)

Each Room amenity at MB level can be linked to an item of this global default library

Theme code

  • .name amenity name

  • .url path to an image (URL of the image)

  • .svg HTML code to inline the svg (if master amenity associated)

  • .ota OTA code associated (if master amenity associated)

JSON example

{
    "module":"room",
    "fields": "name,url,room_amenities",
    "children": {
        "room_amenities": "name,url,is_featured,svg,ota"
    }
}

Loop example

#$loop|{room}|{a}| $#
    <h2>{a.name}</h2>
    <ul>
        #$loop|{a.room_amenities}|{amenity}| $#
        <li>
            name: {amenity.name} <br>
            icon (url to an image): {amenity.url} <br>
            svg (master amenity associated; inlined SVG): {amenity.svg}<br>
            ota (master amenity associated): {amenity.ota} <br>
        </li>
        #$/loop|{a.room_amenities}|{amenity}| $#
    </ul>
#$/loop|{room}|{a}| $#

Admin - Create Master Amenities list

Admin can create master amenities.

Open the Megamenu, go to Galaxy > Unit > in the list, choose your unit

Then go to "Room Amenities Master" tab

Admin only: ability to create a list of "Room Amenities Master"

Last updated