Venti 2

Documentation

Locations

All events need a place to happen that is why we have included locations. Locations have their own Element Type Venti_Location and as such will return an Element Criteria Model when accessed. This will also allow relations with events.


{% set locations = craft.venti.locations() %}

{% for loc in locations %}
{% endfor %}

Location Model#


address

Street address of your location.

{{ loc.address }}

addressTwo

Secondary address of your location.

{{ loc.addressTwo }}

city

City/town of your location.

{{ loc.city }}
{{ loc.town }}

country

The country of your location.

{{ loc.country }}

id

The id of your location element.

{{ loc.id }}

latitude

The latitude coordinate of your location.

{{ loc.latitude }}

longitude

The longitude coordinate of your location.

{{ loc.longitude }}

state,town,province

The state/town/province of your location.

{{ loc.state }}
{{ loc.town }}
{{ loc.province }}

zipCode,postalCode

The state/town/province of your location.

{{ loc.zipCode }}
{{ loc.postalCode }}

website

The url to the website associated with the location.

{{ loc.website }}

Location Methods#


getMapUrl(type) default:google

Generates a map url from the address and will output a Google or Apple map url.

{{ loc.getMapUrl("apple") }}

fullAddress()

Outputs the full address of the location for convinence.

{{ loc.fullAddress() }}

Location Element#

Because this returns an element criteria model you have access to the same methods as here Element Criteria Model.