Jump to content

Overload the helper form.tpl file from an admin module ?


Tak

Recommended Posts

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/" folder

Thank you.

Link to comment
Share on other sites

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

In my case, the file I wanted to override was "form.tpl" located in admin/themes/default/template/helpers/form

I have put my file in this folder :
/yourmodulefolder/views/templates/admin/yourcontroller/helpers/form/form.tpl

Link to comment
Share on other sites

  • 2 years later...
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

  • 2 months later...

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
×
×
  • Create New...