Keyword

[SOLVED] problem to override item.php

  • Mohsen Babaei
  • Mohsen Babaei's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 7 months ago #125247 by Mohsen Babaei
[SOLVED] problem to override item.php was created by Mohsen Babaei
Hello
I copied default k2 template files to templates/joomltemplate/html/com_k2/default.
I can override all file in this folder except item.php.
I changed the code in item.php and saved it. but nothing change in item page.
What is the problem?
I use k2mart too. do you thing i have to edit another file to override k2 item page?
thanks

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

More
10 years 7 months ago #125248 by Lefteris
Replied by Lefteris on topic Re: problem to override item.php
Hi. Please ensure that the category of this item is setup to use the default template and not another one. If you need to override K2mart block then you need to take a look at K2mart documentation at www.joomlaworks.net/docs/k2mart

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

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

  • Mohsen Babaei
  • Mohsen Babaei's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 7 months ago #125249 by Mohsen Babaei
Replied by Mohsen Babaei on topic Re: problem to override item.php

Lefteris Kavadas wrote: Hi. Please ensure that the category of this item is setup to use the default template and not another one. If you need to override K2mart block then you need to take a look at K2mart documentation at www.joomlaworks.net/docs/k2mart

hello
I am sure that category of this item is setup to default template but when i change item title h2 tag to h1 in default item.php and test it by webdeveloper tag is still h2.
I rename default folder in templates/joomltemplate/html/com_k2 and also in components/com_k2/templates to defalt1. category list disappeared in my site but item pages do not disappeared.
I think item.php load from another folder.
I use k2mart too.
i wonder if you help me
Regards

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

More
10 years 7 months ago #125250 by Lefteris
Replied by Lefteris on topic Re: problem to override item.php
Since we have built several sites and never faced this issue, here are some steps that might help:

1. Ensure that you have the latest version of K2 installed ( 2.6.7 currently )
2. Ensure that you have supported version of Joomla!. Currently supported versions of Joomla! are 1.5.26, 2.5.18 and 3.2.2.
3. Check that the category of this item is not inheriting settings from another category.
4. Check that there is no menu link overriding the category setting.
5. Check that the changes you made to the file are applied ( the file is saved indeed and you don't get a save error )
6. Check the file permissions. They should be set to 644.

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

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

More
10 years 7 months ago #125251 by Tracey
Replied by Tracey on topic Re: problem to override item.php
Hi, also try to clear your joomla and browser cache.

Joomla! v3.5.1
Gantry5 - Hydrogen Template
k2 v2.7.0

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

  • Mohsen Babaei
  • Mohsen Babaei's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 7 months ago #125252 by Mohsen Babaei
Replied by Mohsen Babaei on topic Re: problem to override item.php

Lefteris Kavadas wrote: Since we have built several sites and never faced this issue, here are some steps that might help:

1. Ensure that you have the latest version of K2 installed ( 2.6.7 currently )
2. Ensure that you have supported version of Joomla!. Currently supported versions of Joomla! are 1.5.26, 2.5.18 and 3.2.2.
3. Check that the category of this item is not inheriting settings from another category.
4. Check that there is no menu link overriding the category setting.
5. Check that the changes you made to the file are applied ( the file is saved indeed and you don't get a save error )
6. Check the file permissions. They should be set to 644.

hello and thanks for replaying
I have checked all of steps. but i still have problem.
May i send you admin and cpanel password in privet to check it?

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

  • Mohsen Babaei
  • Mohsen Babaei's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 7 months ago - 10 years 7 months ago #125253 by Mohsen Babaei
Replied by Mohsen Babaei on topic Re: problem to override item.php

Tracey wrote: Hi, also try to clear your joomla and browser cache.

Hello I cleared joomla and browser cache but I have still problem

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

  • Mohsen Babaei
  • Mohsen Babaei's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 7 months ago #125254 by Mohsen Babaei

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


Powered by Kunena Forum