Keyword

K2 Template Overrides for Core Code

  • william white
  • william white's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 5 months ago #84734 by william white
K2 Template Overrides for Core Code was created by william white
Regular overrides go in
templates\jsn_epic_pro\html\com_k2\templates\yourtemplate name
Can other items be overwridden in the same manner - such as
override - components\com_k2\models\items.php by placing a copy of it in another directory.
I have tried several combinations but none successfully.

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

  • Markus
  • Markus's Avatar
  • Visitor
14 years 5 months ago #84735 by Markus
Replied by Markus on topic K2 Template Overrides for Core Code
Hi William,

i think you can "override" the model. Take a look at the plugin i attachet.

The Plugin "overrides" the item model from com_content. it is a copy with changes of the orignal model.

You can do the same with k2 model.
Attachments:

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

  • william white
  • william white's Avatar Topic Author
  • Offline
  • Platinum Member
More
14 years 5 months ago #84736 by william white
Replied by william white on topic K2 Template Overrides for Core Code
Thanks, ill take a look at it.

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


Powered by Kunena Forum