Jump to content
Sign in to follow this  
Blesta Addons

Allow Plugin to set vars in main structure.pdt

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.


 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×