eZ Platform Discussions

Tip: Get current siteaccess name in Twig in eZ Platform


#1

You can access the current matching siteaccess name in Twig templates with the following call:

{{ app.request.get('siteaccess').name }}

#2

@janit You can also use {{ ezpublish.siteaccess.name }} :slight_smile:


#3

@janit @emodric Great forum post tip content!