Author Topic: template override for vmadmin  (Read 531 times)

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 194
    • Barg IT
template override for vmadmin
« 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

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3764
  • using Matomo instead of Google Analytics
Re: template override for vmadmin
« Reply #1 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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 194
    • Barg IT
Re: template override for vmadmin
« Reply #2 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

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10878
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: template override for vmadmin
« Reply #3 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

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

p.barg

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 194
    • Barg IT
Re: template override for vmadmin
« Reply #4 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.


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10878
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.8.8
Re: template override for vmadmin
« Reply #5 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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation