Portal
The portal
object has the following attributes:
- portal.abbreviation
- portal.domain_name
- portal.description
- portal.official_name
- portal.keywords
- portal.time_zone
- portal.listings_count
- portal.created_at
- portal.updated_at
- portal.country
- portal.listing_categories
- portal.language
portal.country
Returns portal’s country. [Optional]
Input
{{ portal.country.name }}
# => Cambodia
portal.language
Returns portal’s language. [Optional]
Input
{{ portal.language.name }} ({{ portal.language.two_code }})
# => Cambodia (kh)
portal.listing_categories
Returns an array of listing categories. [Optional]
Input
{% for category in portal.listing_categories %}
{{ category.alias_id }}
# => "kh1"
{{ category.name }}
# => "Office Rental Services"
{{ category.short_name }}
# => "Office Rental"
{{ category.keyword }}
# => "office, rental"
{{ category.description }}
# => "We provice the best office rental in Cambodia."
{{ category.display_on_web }}
# => "true"
{{ category.subcategories_count }}
# => "0"
{{ category.listings_count }}
# => "1"
{{ category.level }}
# => "1"
{{ category.short_description.text }}
# => "• Fresh and Clean Air\n• Constant Breeze\n• Lots of Natural Light\n"
{{ category.short_description.categories[0].text }} # return an array of short description categories.
# => "Office Rental Services"
{% endfor %}