Keyword

Is it possible to override models ?

  • VictorWizz
  • VictorWizz's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #117093 by VictorWizz
Is it possible to override models ? was created by VictorWizz
Hello,

is it possible to override item.php ? I want to add some code to function save().

I tried to create administrator/code/com_k2/models/item.php but it does not work.

Any ideas or solution ?


Have a nice day,

Victor

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 1 month ago #117094 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Is it possible to override models ?
Hi Victor,

Maybe a k2 plugin can help in this context.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.

  • VictorWizz
  • VictorWizz's Avatar Topic Author
  • Offline
  • New Member
More
11 years 1 month ago #117095 by VictorWizz
Replied by VictorWizz on topic Re: Is it possible to override models ?
What kind of plugin ? There is no way to override just by adding new files ?

Please Log in or Create an account to join the conversation.

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 1 month ago #117096 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Is it possible to override models ?
K2 content plugin.

I think it is possible to override by hacking the core files, but this is not recommended.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum