Keyword

[SOLVED] Can't override item.php

More
11 years 10 months ago - 11 years 10 months ago #106496 by Marco
[SOLVED] Can't override item.php was created by Marco
Hi to all, i did exactly what is written in instructions:

copied the content of the folder /components/com_k2/templates/ and pasted it into /templates/MYJOOMLATEMPLATE/html/com_k2/nameofmytemplate

i also tried to copy it in /templates/MYJOOMLATEMPLATE/html/com_k2/templates/nameofmytemplate

and then i setted the correct template in k2 category, i looked also in database and i saw that the theme is associated but i can't see any modification, even if i delete a lot of code in my template.

I don't have any SEO module (i red a message on this formum where the problem was that)

What can it be???

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

More
11 years 10 months ago #106497 by william white
Replied by william white on topic Re: Can't override item.php
the correct path to copy to is
YourSiteRoot/templates/YourTemplate/html/com_k2/templates/YourOverrideDirectoryName

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

More
11 years 10 months ago - 11 years 10 months ago #106498 by Marco
Replied by Marco on topic Re: Can't override item.php
Yes, this is my path: Joomla/templates/templatename/html/com_k2/templates/progetti/item.php

Joomla because my site isn't in the root of the site, could is that the problem?

I also tried to rename the default template in components/com_k2/templates/item.php to see what happend, even if i delete this item,php file and that one in Joomla/templates/templatename/html/com_k2/templates/progetti/ i can't see any differences, am i stupid?? how could it be? :blink:

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

More
11 years 10 months ago - 11 years 10 months ago #106499 by Marco
Replied by Marco on topic Re: Can't override item.php
Ok i found the problem, it is the plugin K2MultiImages_1.1_K2_2.5.7 very big problem for me!!

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

More
11 years 10 months ago #106500 by Marco
Replied by Marco on topic Re: Can't override item.php
FINALLY SOLVED!!!

That plugins override itself the template, you have to edit the template file of the plugin that are in /plugins/system/k2multiimages/K2MultiImages/templates/

Hope to help someoneelse to don't waste his time!

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

More
10 years 7 months ago - 10 years 7 months ago #106501 by Mohsen Babaei
Replied by Mohsen Babaei on topic Re: Can't override item.php

Marco wrote: FINALLY SOLVED!!!

That plugins override itself the template, you have to edit the template file of the plugin that are in /plugins/system/k2multiimages/K2MultiImages/templates/

Hope to help someoneelse to don't waste his time!

Hello0o0o0o
very very very big big big big thanks
you saved my time. I had this problem for more than 10 days

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


Powered by Kunena Forum