Jump to content

Allow Plugin to set vars in main structure.pdt


Blesta Addons

Recommended Posts

the plugins can set vars for the used template file when they are visited. it would be very smarty to allow plugin inject vars for the structure file (main structure) without visiting the plugin.

let say we have a plugin data collect some info/stats, and inject it directly to the structure file (like preAction.structure event inject HTML/Javascript), then from structure template we can use this info in structure file. i hope the idea is clear (new preAction.global event inject vars to the structure ).

sample case, i have a plugin that count how many tickets assigned to the logged staff, in my structure i want to show this data close to the info menu.


 

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.

Loading...
×
×
  • Create New...