Test if partial / component / content file exists before using it.
0
{% if content("myContent") %}
{% content "myContent" %}
{% else %}
<other content here>
{% endif %}
{% if partial("myPartial") %}
{% partial "myPartial" %}
{% else %}
<other content here>
{% endif %}
{% if component("myComponent") %}
{% component "myComponent" %}
{% else %}
<other content here>
{{% endif %}
There are no comments yet
Be the first one to comment