Jump to content

Is it somehow possible to override .tpl files from a module?


ragulka

Recommended Posts

I understand that it is possible to override back-office .tpl files either by placing them in the general override folder, for example:

/override/controllers/admin/templates/products/informations.tpl,

or to override a specific module's templates, in my theme, for example:

/themes/my_theme/modules/my_module/mymodule.tpl

 

However, is it somehow possible to override from my own module? For example, something like this:

/modules/my_module/override/controllers/admin/templates/products/informations.tpl

?

 

If not, perhaps this is on the roadmap as it seems like a really useful feature to have.

Link to comment
Share on other sites

  • 2 years later...

Hello Sorry to Put this topic up but I need a clean solution.

 

I have created a module that create a table linked to a customer, and I have to show these fields in the customer back office (Client profile). I was really disappointed to see that  no hooks are available to add simple fields in this template (no display hooks are available at all for this template). 

 

So I'm trying to override it from my module ( this one: admin.../themes/default/template/controllers/customers/helpers/view/view.tpl ) but it looks like this is impossible due to possible conflicts between modules (that potentially override the same templates). What I understand of course.

 

But I just want to insert fields without editing original template because this is really not good and I want to enapsulate this feature in my module....

 

what's the best way to proceed? Fields are HARDCODED in the template not as the client listing. Unfortunatly

 

It would be nice to have a little help for this problem

 

Thank you very much

Edited by Nervus70 (see edit history)
Link to comment
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
×
×
  • Create New...