Organization Type Site Settings

You may access the following public properties and methods on an Organization Type Site Settings.

Public Properties

The following properties are available:

PropertyTypeDescription
typeIdintegerThe organization's state (custom defined)
siteIdintegerThe date the organization joined
hasUrlsbooleanThe date the organization joined
uriFormatstring, nullThe date the organization joined
templatestring, nullThe date the organization joined

Public Methods

The following methods are available:

getSite()

Returns: Site

{# Get an Organization Type #}
{% set object = craft.organizations.organizationTypes.get('technology') %}
{% set siteSettings = object.getSiteSettings() %}
<ul>
{% for settings in siteSettings %}
    {% set site = settings.getSite() %}
    <li>{{ site.id }} - {{ site.name }}</li>
{% endfor %}
</ul>

getType()

Returns: Organization Type

{# Get an Organization Type #}
{% set object = craft.organizations.organizationTypes.get('technology') %}
{% set siteSettings = object.getSiteSettings() %}
<ul>
{% for settings in siteSettings %}
    {% set type = settings.getType() %}
    <li>{{ type.id }} - {{ type.handle }}</li>
{% endfor %}
</ul>

hasUrls()

Returns: boolean

{# Get an Organization Type #}
{% set object = craft.organizations.organizationTypes.get('technology') %}
{% set siteSettings = object.getSiteSettings() %}
<ul>
{% for settings in siteSettings %}
    <li>
        {% if settings.hasUrls %}
            {{ settings.uriFormat }} - {{ settings.template }}
        {% else %}
            No Url
        {% endif %}
    </li>
{% endfor %}
</ul>