Template Editor

Edit Twig templates online from the admin.

Install

composer require pushword/template-editor

Custom installations (not the default installer): see vendor/pushword/admin/install.php.

Configuration

pushword_template_editor:
  disable_creation: false
  can_be_edited_list:
    - '/pushword.piedweb.com/page/_footer.html.twig'
  • disable_creation — forbid creating templates.
  • can_be_edited_list — restrict editing to these paths, relative to the templates directory (empty: every template).

Both restrictions apply to every admin except ROLE_SUPER_ADMIN.