Style template events

For support and discussion related to templates and themes in phpBB 3.3.
User avatar
consros
Registered User
Posts: 14
Joined: Sat Mar 08, 2025 7:53 pm

Style template events

Post by consros »

Hello again,

Is there anything that could prevent template events from working? Do they need to be activated in some way?

If I follow the instructions here:
area51.phpBB documentation
and here:
phpBB styles documentation

and simply create the corresponding file, for example:

public_html/support/styles/sandy/template/event/overall_header_head_append.html
or
public_html/support/styles/sandy/template/event/overall_header_navigation_prepend.html

nothing gets added to the final HTML.

What am I doing wrong? Or what should I check?
Thanks in advance!

P.S.
Of course I've purged the board cache.
And yes, I've activated @define('DEBUG_CONTAINER', true); in the config.php.
And I've extended config/production/config.yml with following lines:

Code: Select all

parameters:
    debug.exceptions: true
    debug.load_time: true
    debug.sql_explain: true
    debug.memory: true
    debug.show_errors: true
User avatar
cabot
Jr. Style Validator
Posts: 1198
Joined: Sat Jan 07, 2012 4:16 pm

Re: Style template events

Post by cabot »

Hello,

Short answer: you can't use events to inject code into a style from another style, currently it's only possible to do this with an extension. :/
User avatar
consros
Registered User
Posts: 14
Joined: Sat Mar 08, 2025 7:53 pm

Re: Style template events

Post by consros »

:/
Oook.
Thank you!

Return to “[3.3.x] Styles Support & Discussion”