Implemented Add hook locations to templates

psylenced

Member
A fair few people seem to be posting manual template edits.

Just thinking it'd be good to add hook location tokens to all templates to allow developers to add template changes to individual templates.

A way I can think this might happen is to add something like:

{xen:hooklocation 'top'}
<div>
<html code>
</div>
{xen:hooklocation 'bottom'}

Then developer's addons can possibly create a listener to the template-compile event where they can append a single/many templates or I guess even html code to the hook token.

This means simple template changes can be made without ever having to touch the original templates and means upgrading should be simple and easy.
 
Upvote 0
This suggestion has been implemented. Votes are no longer accepted.
Top Bottom