I got a question regarding the event CSS_STYLES_INCLUDED
. Is it possible that a template handles this event?
I saw that templates e.g. can handle the event TPL_METAHEADER_OUTPUT
by inserting code like this in the template's code:
$EVENT_HANDLER->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', null, 'callback_function_name');
But as far as I understood this will not work for the event CSS_STYLES_INCLUDED[/m]. The reason - from my understanding - is, that the CSS code generated and delivered by DokuWiki is generated in [m]css.php[/m] which is referenced by templates through a link. That way, [m]css.php[/m] is run as it's own process/request. And, on handling of a request by [m]css.php[/m] no template code seems to be included/executed. So my impression is that actually only plugins can use the event [m]CSS_STYLES_INCLUDED
So, is my understanding correct? Or is there an existing way how a template can handle the event which I did not see? Any feedback is appreciated.
Thanks and greetings,