Jump to content

Ovveride the structure view from plugin event


Blesta Addons

Recommended Posts

7 hours ago, Jono said:

It would be in the preaction.  The order_controller.php and order_form_controller.php files from the order plugin I think may have an example of something like this if I'm understanding rightly what you want to do.

Thanks @Jono. you are talking about the view in the plugins. i'm referring to view in the client area . sample example .

i have two theme folders, bootstrap and bootsrap1 . i want for client group X use the boostrap1 , and for client group Y use the bootstrap . 

i know the template folder is saved in the company settings called 'client_view_dir' . i have made a dirty way to update the client_view_dir from preAction event, but it appear that the event trigger for PreAction called after the setDefaultView() function .

any other way ?

Link to comment
Share on other sites

  • 2 years later...
  • 3 weeks later...

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...