Tak Posted July 13, 2016 Share Posted July 13, 2016 Hi,I would like to know if it was possible to overload the form.tpl template of the "admin/themes/default/template/helpers/form/ folder", from my module folder. The only way I can overload the form.tpl template is either from the override folder or the "admin/themes/default/template/controllers/mycontroller/" folderThank you. Link to comment Share on other sites More sharing options...
Tak Posted July 13, 2016 Author Share Posted July 13, 2016 My bad, I found my mistake.When I created my module Controller, my IDE autocompleted the class name extends with the 'Core' suffix (AdminModuleControllerCore).Because of that, the if statement of line 83, in the Helper.php file didn't work and thus loading the wrong template.Sorry for the post. Link to comment Share on other sites More sharing options...
Cobs Posted July 20, 2016 Share Posted July 20, 2016 did you have to do something else in the controller ? i tried to override list.tpl for weeks but i couldn't find any solutions. only the default template is loaded. Link to comment Share on other sites More sharing options...
Tak Posted July 28, 2016 Author Share Posted July 28, 2016 In my case, the file I wanted to override was "form.tpl" located in admin/themes/default/template/helpers/formI have put my file in this folder :/yourmodulefolder/views/templates/admin/yourcontroller/helpers/form/form.tpl Link to comment Share on other sites More sharing options...
Cobs Posted July 28, 2016 Share Posted July 28, 2016 yeah i already solved it by putting the .tpl at the right place. but for some reasons it didn't worked before. this problem drove me crazy but it's solved now.thanks. Link to comment Share on other sites More sharing options...
giwrgos88 Posted October 22, 2018 Share Posted October 22, 2018 On 7/28/2016 at 6:31 PM, Cobs said: yeah i already solved it by putting the .tpl at the right place. but for some reasons it didn't worked before. this problem drove me crazy but it's solved now. thanks. what was the right place? can you share your solution? Link to comment Share on other sites More sharing options...
rayrodriguezg Posted January 8, 2019 Share Posted January 8, 2019 Here solution: default : /backoffice/themes/default/template/controllers/orders/helpers/list override: /override/controllers/admin/templates/orders/helpers/list Regards! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now