L’idée est de créer un template spécifique à notre nouveau thème pour afficher le logo du site. Ce template doit être manipulable en back-office via l’interface Réglages > Communs > Thèmes > Choisir son thème > Choisir son template de page > Propriétés générales.

Change4_BO_zone_du_template-xhtml

Méthode développeur front-end (facile) :

Les fichiers qui vont jouer un rôle prépondérant :

App/Themes/Project/[Nom_de_votre_theme]/Assets/Twig/Project_[Nom_de_votre_theme]/Templates/noSidebarPage.json

App/Themes/Project/[Nom_de_votre_theme]/Assets/Twig/Project_[Nom_de_votre_theme]/Templates/noSidebarPage.twig

App/Themes/Project/[Nom_de_votre_theme]/Assets/Twig/Project_[Nom_de_votre_theme]/Blocks/xhtml-header-logo.twig

App/Themes/Project/[Nom_de_votre_theme]/Assets/blocks-templates.json

App/Themes/Project/[Nom_de_votre_theme]/Assets/plugin.json

Toujours vérifier la présence de ce fichier dans votre plugin.

Méthode dépréciée (à utiliser en dernier recours si votre bloc ne s’affiche pas en BO) :

Les fichiers qui vont jouer un rôle prépondérant :

…donc il y en a encore quelques autres, notamment les locales et la vue WYSIWYG back-office qu’il faudra également prendre en compte.

App/Modules/Project/[Nom_de_votre_module]/Blocks/Listeners.php

App/Modules/Project/[Nom_de_votre_module]/Blocks/Update.php

App/Modules/Project/[Nom_de_votre_module]/Setup/Install.php

App/Modules/Project/[Nom_de_votre_module]/plugin.json

Toujours vérifier la présence de ce fichier dans votre plugin.

App/Themes/Project/[Nom_de_votre_theme]/Assets/Twig/Project_[Nom_de_votre_theme]/Templates/noSidebarPage.json

App/Themes/Project/[Nom_de_votre_theme]/Assets/Twig/Project_[Nom_de_votre_theme]/Templates/noSidebarPage.twig

App/Themes/Project/[Nom_de_votre_theme]/Assets/Twig/Project_[Nom_de_votre_theme]/Blocks/xhtml-header-logo.twig

App/Themes/Project/[Nom_de_votre_theme]/Assets/blocks-templates.json

App/Themes/Project/[Nom_de_votre_theme]/Assets/plugin.json

Toujours vérifier la présence de ce fichier dans votre plugin.