Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Override Components instead of View

Leonardo Gomes   ( User )

Commented 3 years ago

Hi Denis and Community,

I am still on my mission of create a custom module. One of the functionallities include a new document template.

I tried to override the output of the view, however i noticed that it won't work because some variables are defined on DocumentTemplate Component that is extended from another component for each document template.

So, if my logic is correct, I should override the component and not the view.

So my question is: How could I make it?

If my logic is not reasonnable, then please help me find out the situation!

Regards,

Leonardo Gomes   ( User )

Commented 3 years ago

Ok, i could find a solution.

I was overriding the wrong view.

In case someone tries the same, need to override the template inside the components folder of the core.

Please login or register to leave a response.

Showing 1 to 2 of 2 discussions