Kaizen
Member
Looking at finally transitioning from v.1 to v.2, but have a few custom plugins/addons that have to be recreated first.
In that regard, I am wondering if it is still possible to add an event listener to a template?
As an example, this would be from the config in the old xml settings file for the plugin/addon:
I see there is a "code_event_listeners.xml" file in the new "_data" directory, but I cannot find any documentation on how I can add a template listener to an addon.
In that regard, I am wondering if it is still possible to add an event listener to a template?
As an example, this would be from the config in the old xml settings file for the plugin/addon:
Code:
<listener event_id="template_hook" execute_order="999" callback_class="AprilFools_Listener" callback_method="updateRank" active="1" hint="message_user_info_text" description="April Fools - Forum List Rank"/>
I see there is a "code_event_listeners.xml" file in the new "_data" directory, but I cannot find any documentation on how I can add a template listener to an addon.