Override Admin templates ?

Pascal
Pascal
Offline
0
Hi all

Is it possible to change the admin templates for invoices manager

I would like to change the form
I tried to copy file in administrator/templates/isis/html/com_invoices/templates/invoice/items.php
But it has no effect ...

Any suggestion ?

Regards

Accepted Answer

Thursday, March 22 2018, 02:41 PM - #Permalink
0
no, unfortunately with the VUE templates you cannot do template overrides directly, UNLESS you change the contents of the view files, to point to a different /templates folder.

what I recommend is simply to make a duplicate of the folder, for example name it templates2, this way you will keep the originals.
The reply is currently minimized Show
Responses (6)
  • Accepted Answer

    Thursday, March 22 2018, 10:29 AM - #Permalink
    0
    hello,

    it's quite more complicated than that.

    The templates are VUE templates (javascript engine), so the syntax is different and work in a pretty different way.

    what do you want to change, exactly?
    The reply is currently minimized Show
  • Accepted Answer

    Pascal
    Pascal
    Offline
    Thursday, March 22 2018, 10:48 AM - #Permalink
    0
    I would like to delete some not needed columns like discount for instance
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 22 2018, 10:55 AM - #Permalink
    0
    hmmm but where? in the invoice list view?
    or in the final "rendered" invoice template?
    The reply is currently minimized Show
  • Accepted Answer

    Pascal
    Pascal
    Offline
    Thursday, March 22 2018, 11:36 AM - #Permalink
    0
    In quote admin view when clicking on EDIT button
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, March 22 2018, 11:53 AM - #Permalink
    0
    ok, so you want to edit the FORM, correct?
    the form files are in:

    /administrator/components/com_invoices/templates/invoice/

    (for example "items.php" for the items tab)

    but you have to be careful what you change, because this is a VUE.js template...
    The reply is currently minimized Show
  • Accepted Answer

    Pascal
    Pascal
    Offline
    Thursday, March 22 2018, 01:59 PM - #Permalink
    0
    Ok I know it this file but what about the extension updates ?

    We cannot do an proper override in the template directory !
    The reply is currently minimized Show
Your Reply