Keyword

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

  • siamnaulak
  • siamnaulak's Avatar Topic Author
  • Offline
  • Senior Member
More
5 years 9 months ago #171050 by siamnaulak
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.

More
5 years 9 months ago #171059 by JoomlaWorks
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

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • siamnaulak
  • siamnaulak's Avatar Topic Author
  • Offline
  • Senior Member
More
5 years 9 months ago #171078 by siamnaulak

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.

More
5 years 9 months ago #171104 by JoomlaWorks
Source template files for K2 are located in /components/com_k2/templates/. It's fairly clear in the link I provided.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum