Skip to content

Twig Edition Reference

The edition adapter provides methods to check the current license edition and gate features accordingly. Total CMS has three edition levels: Lite (1), Standard (2), and Pro (3).

Check if a specific feature is available for the current edition.

{% if cms.edition.can('custom-schemas') %}
<a href="/admin/schemas/new">Create Custom Schema</a>
{% endif %}
{% if cms.edition.can('data-views') %}
<a href="/admin/dataviews">Data Views</a>
{% endif %}
ParameterTypeDescription
featureNamestringFeature identifier to check

Get an array of all feature identifiers allowed for the current edition.

{% set features = cms.edition.getAllowedFeatures() %}
<ul>
{% for feature in features %}
<li>{{ feature }}</li>
{% endfor %}
</ul>

Get the name of the current edition (e.g., "lite", "standard", "pro").

<p>Edition: {{ cms.edition.getCurrent() }}</p>

Get the numeric level of the current edition.

{% set level = cms.edition.getLevel() %}
{# 1 = Lite, 2 = Standard, 3 = Pro #}

Check if the current edition is Standard or higher.

{% if cms.edition.getIsStandard() %}
{# Standard+ features #}
{% endif %}

Check if the current edition is Pro.

{% if cms.edition.getIsPro() %}
{# Pro-only features #}
{% endif %}

Check if edition simulation is active (for testing edition-restricted features during development).

{% if cms.edition.getIsSimulating() %}
<div class="dev-notice">Simulating {{ cms.edition.getCurrent() }} edition</div>
{% endif %}

Get edition information as an array for display purposes.

{% set info = cms.edition.getInfo() %}
<p>Running {{ info.effectiveEdition }} edition</p>