Skip to content

Site context Twig functions

To determine if given location is site context-aware, you can use site context Twig test.

ibexa_site_context_aware()

ibexa_site_context_aware() checks whether a given location is site context-aware, meaning it is not excluded from Site context using the ibexa.system.<scope>.site_context.excluded_paths configuration.

Examples

1
2
3
{% if location is ibexa_site_context_aware %}
    <p>I am aware of the site context!</p>
{% endif %}