Build Multi Family Home
For a specific model add data-project-id
and data-unit-id
attributes to your element.
To drill down to the Community, add the data-project-id
attribute only.
Example:
<button
class="ownly-build-home"
data-community-id="YOUR_PROJECT_ID"
data-unit-id="YOUR_UNIT_ID">
Build Home
</button>
Also create or update a new community and model by adding more attributes.
Name | Attribute | Type | Required |
---|---|---|---|
Project ID | data-project-id | string | true |
Project External ID | data-project-external-id | string | true |
Project Name | data-project-name | string | true |
Building ID | data-building-id | string | true |
Building External ID | data-building-external-id | string | true |
Building Name | data-building-name | string | true |
Unit ID | data-unit-id | string | true |
Unit Name | data-unit-name | string | true |
Unit Size | data-unit-size | number | false |
Unit Beds | data-unit-beds | number | false |
Unit Baths | data-unit-baths | number | false |
Unit Price | data-unit-price | number | false |
Unit Floor | data-unit-floor | number | false |
Unit Image | data-unit-image | string | false |
Floor Name | data-unit-option1-floor | string | true |
Floor Image | data-unit-option1-floor-image | string | false |
Group Name | data-unit-option1-group | string | true |
Floor Option Name | data-unit-option1-name | string | true |
Floor Option Size | data-unit-option1-size | string | false |
Floor Option Beds | data-unit-option1-beds | string | false |
Floor Option Baths | data-unit-option1-baths | string | false |
Floor Option Price | data-unit-option1-price | string | false |
Floor Option Image | data-unit-option1-image | string | false |
Whenever you add a new model option, increment the index specified in the attribute:
data-unit-option1-name, data-unit-option2-name, data-unit-option3-name, [...],
Example:
<button class="ownly-build-home"
data-project-external-id="project1"
data-project-name="Ice District"
data-building-external-id="building1"
data-building-name="Building 1"
data-unit-id="unit1"
data-unit-name="Unit 1"
data-unit-size="930"
data-unit-beds="2"
data-unit-baths="2"
data-unit-price="850000"
data-unit-floor="19"
data-unit-image="/assets/images/unit-101.jpg"
data-unit-option1-floor="Main Floor"
data-unit-option1-group="Kitchen"
data-unit-option1-name="Spice Kitchen"
data-unit-option1-price="1000"
data-package-name="Exclusive"
data-package-price="10000"
data-palette-name="Nordic Clean"
data-palette-price="5000">
Build Home
</button>