Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Joomla! model overrides

I am developing a Joomla 3.1 website. On the work flow I found out that I need to change administrator/components/com_k2/models/category.xml. I have no other way. But I don't also want my client afterwards to have troubles with K2 updates.

I tried to google about possible solutions but everybody says it is impossible to override models in Joomla. And that I need to make a plugin of it. I am even eager to make a plugin but cannot find appropriate tutorials.

Has anyone met such a problem and is there a way to come to solution?

Thanks.

like image 612
gag Avatar asked Dec 10 '25 05:12

gag


1 Answers

You can use this to override models: Plugin Override.

Install and enable the plugin.

You can then copy the file:

administrator/components/com_k2/models/category.xml

to:

administrator/templates/bluestork/html/com_k2/models/category.xml

and edit it as you like.

like image 68
Emilian Manolache Avatar answered Dec 12 '25 19:12

Emilian Manolache



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!