Keyword

How to override components > com_k2 > models > item.php file

  • siamnaulak
  • siamnaulak's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 4 days ago #171050 by siamnaulak
siamnaulak created the topic: How to override components > com_k2 > models > item.php file
I wanted to override item.php in components\com_k2\models\ in my template folder. I used below root but it's not working

templates/TEMPLATENAME/html/com_k2/models/item.php

Can anyone tell me the correct root?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 4 days ago #171059 by Fotis
Fotis replied the topic: How to override components > com_k2 > models > item.php file
You're doing it wrong...

These are the right paths and files to use: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • siamnaulak
  • siamnaulak's Avatar Topic Author
  • Offline
  • Junior Member
More
2 weeks 2 days ago #171078 by siamnaulak
siamnaulak replied the topic: How to override components > com_k2 > models > item.php file

Fotis wrote: You're doing it wrong...

These are the right paths and files to use: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates


Hi Fotis, I follow the link you gave me, but didn't find a solution to my issue Or am I not understanding the guide?

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 week 5 days ago #171104 by Fotis
Fotis replied the topic: How to override components > com_k2 > models > item.php file
Source template files for K2 are located in /components/com_k2/templates/. It's fairly clear in the link I provided.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white