VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: p.barg on April 11, 2023, 11:29:20 AM

Title: template override for vmadmin
Post by: p.barg on April 11, 2023, 11:29:20 AM
Hello,

is there a way to write a backend template override for the new vmadmin?
I used to do this for J3/VM3 for the products list in the backend, but as vmadmin seems to be a template override itself, I don't know if that's possible at all...

J44.2.9 / VM4.0.12

Thanks, Petra
Title: Re: template override for vmadmin
Post by: jjk on April 23, 2023, 15:27:51 PM
You can create for example a user.css file with your overrides in the css folder at:
htdocs\yoursitename\media\templates\administrator\atum\css.

At present I'm using it only for reducing the body text size in the product list view from 1.0 rem to 0.75rem.
Title: Re: template override for vmadmin
Post by: p.barg on April 24, 2023, 09:13:01 AM
Hi jik,

thanks for your suggestion!
What I need to do though is a template override of a php-file of the vmadmin template.

Petra
Title: Re: template override for vmadmin
Post by: GJC Web Design on April 24, 2023, 17:28:26 PM
Hi Petra,

make a child of Autum - select that as default
then e.g.
administrator\templates\atum_autum_child\html\com_virtuemart\about\default.php works

Title: Re: template override for vmadmin
Post by: p.barg on April 24, 2023, 17:44:35 PM
Hm, that's what I actually tried (without the child template though - I directly placed the override in the atum template).
But the result was a mess. For the corresponding view (product list in my case) the backend VM template switched to the old layout then and looked terrible.

Title: Re: template override for vmadmin
Post by: GJC Web Design on April 24, 2023, 20:43:58 PM
only worked here with a child template to Autum .. without a child your changes will be over written on any Joomla update  - so then u might as well make the changes directly in the VMAdmin template and just renew them when u update