Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How to work around insufficient template hooks? Rate Topic   - - - - -

 
  • Smich
  • Advanced Member
  • Members
  • Join Date: 13-Jan 12
  • 65 posts

Posted 04 June 2012 - 11:52 AM #1

Hi,

I'm trying to add microdata markup (schema.org-compatible) to my site. I'm doing this via an add-on of my own that uses "*.pre.tpl" and "*.post.tpl" templates.

The problem is that there aren't enough hooks in the appropriate places to do this in a satisfactory manner.

I realise that I *can* add my own hooks to a skin. However, if the skin is changed, all those custom hooks will have to be re-added to the new skin or the corresponding .pre/.post templates won't be included. Also, if the HTML I wish to markup was generated via an addon's .tpl, then that would involve modifying the addon (rather than the skin).

Of course, all this would quickly degenerate into a customised maintenance nightmare, instead of having one simple addon that can be easily enabled or disabled. I'm trying to figure out a solution that would minimise this.

Any suggestions would be greatly appreciated. :-)

- Smich