Blesta Addons Posted May 23, 2018 Report Share Posted May 23, 2018 is there a way to override the theme directory from a plugin? in preAction ? Michael 1 Quote Link to comment Share on other sites More sharing options...
Jono Posted May 24, 2018 Report Share Posted May 24, 2018 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. Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted May 24, 2018 Author Report Share Posted May 24, 2018 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 ? Michael 1 Quote Link to comment Share on other sites More sharing options...
ViroManchego Posted March 27, 2021 Report Share Posted March 27, 2021 Hy. Any update on this feature ? I'm intrested too Blesta Addons 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted April 12, 2021 Author Report Share Posted April 12, 2021 On 3/27/2021 at 9:53 PM, ViroManchego said: Hy. Any update on this feature ? I'm intrested too after two year, a vote for my request Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.