1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Implemented Add hook locations to templates

Discussion in 'Closed Suggestions' started by psylenced, Oct 8, 2010.

  1. psylenced

    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.
     

Share This Page