- Posts: 4
COMMUNITY FORUM
[SOLVED] Can't override item.php
- Marco
- Topic Author
- Offline
- New Member
Less
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???
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.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
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
YourSiteRoot/templates/YourTemplate/html/com_k2/templates/YourOverrideDirectoryName
Please Log in or Create an account to join the conversation.
- Marco
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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:
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.
- Marco
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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.
- Marco
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
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!
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.
- Mohsen Babaei
- Offline
- Junior Member
Less
More
- Posts: 20
10 years 7 months ago - 10 years 7 months ago #106501
by Mohsen Babaei
very very very big big big big thanks
you saved my time. I had this problem for more than 10 days
Replied by Mohsen Babaei on topic Re: Can't override item.php
Hello0o0o0oMarco 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!
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.