Jump to content

smarty plugins


EricStone

Recommended Posts

Is there a way to register smarty plugins so that custom smarty tags can be used in the clientssummary.tpl file?

 

I've been able to register a plugin in a hook on AdminAreaPage using $aInt->smarty->registerPlugin(), and the custom smarty tag works in header.tpl, footer.tpl, homepage.tpl, menu.tpl, sidebar.tpl, and viewticket.tpl. However, the custom tag breaks the client summary page if I include it in the clientssummary.tpl file: none of the client summary information shows up. As best I can tell, the clientssummary.tpl is processed by smarty before the plugin gets registered, which means the AdminAreaPage hook isn't being run before clientssummary.tpl is processed.

 

I've tried registering the plugin using the AdminAreaClientSummaryPage and various other hooks, but either the plugin can't be registered because $aInt->smarty doesn't exist yet, or else it's too late.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated