Keyword

K2 template override problem

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89954 by Elvinas Karalis
K2 template override problem was created by Elvinas Karalis
Hello k2 community.I have a problem - k2 template override is not working for me.I've downloaded community.getk2.org/forum/topics/k2-template-override-package and uploaded it on my server according to instructions. Renamed folder /templates/mytemplate/html/com_k2/default to /templates/mytemplate/html/com_k2/mytemplate. In administration panel selected mytemplate for certain categories.I want to edit category's subcategories order listing in my own way. But when i edit /templates/mytemplate/html/com_k2/mytemplate/category.php nothing changes. Changes only work when i edit core K2 files in components/com_k2/templates/default/category.php.When i edit /templates/mytemplate/html/css/k2.css changes do work, but i need something more then only css changes.Any one is familiar with such problem?Thank you in advance for any help.
Attachments:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #89955 by Yiota
Replied by Yiota on topic K2 template override problem
Are you sure that on the page you wait to see the changes does the mytemplate occur? Could you check your parameters again?

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89956 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Hello and thank you for the reply.
Yes, i'm sure. Because when i edit components/com_k2/templates/default/category.php changes do appear.
When i edit /templates/mytemplate/html/com_k2/mytemplate/category.php nothing happens. I even deleted part of the code to see if it will produce any error, but still nothing.
I've double checked that in administration panel, in K2 Edit category -> Category item layout -> Select a template mytemplate is selected.
Is there any way of debug it so at least i could see where the error is?



Yiota Ziaggou said:Are you sure that on the page you wait to see the changes does the mytemplate occur? Could you check your parameters again?

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89957 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
UPDATE: I've downloaded free Pangea K2 template just to see if it will work. And here is the same problem - Pange blog and Pangea original K2 templates do not load.
By the way, i'm using K2 v2.4.1.

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

More
14 years 6 months ago #89958 by Carlos Salas
Replied by Carlos Salas on topic K2 template override problem
Are you setting the correctly template in "select a template" in category item layout parameters?
Also I recommend to you download and install onecssperK2template plugin this will allow you to "manage" templates with their own css and but with your own override.


Elvinas Karalis said:UPDATE: I've downloaded free Pangea K2 template just to see if it will work. And here is the same problem - Pange blog and Pangea original K2 templates do not load. By the way, i'm using K2 v2.4.1.

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89959 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Thank, you for the reply. As i said before:

I've double checked that in administration panel, in K2 Edit category -> Category item layout -> Select a template mytemplate is selected.
Thank you for the advice, i would immediately try onecssperK2template plugin.



Carlos Salas said:Are you setting the correctly template in "select a template" in category item layout parameters? Also I recommend to you download and install onecssperK2template plugin this will allow you to "manage" templates with their own css and but with your own override.


Elvinas Karalis said:UPDATE: I've downloaded free Pangea K2 template just to see if it will work. And here is the same problem - Pange blog and Pangea original K2 templates do not load. By the way, i'm using K2 v2.4.1.

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

More
14 years 6 months ago #89960 by troponin
Replied by troponin on topic K2 template override problem
plz try this :

copy yout template in this folder :

/templates/mytemplate/html/com_k2/templates/mytemplate/category.php

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

More
14 years 6 months ago #89961 by Carlos Salas
Replied by Carlos Salas on topic K2 template override problem
Oh, youre right! hehe (=


Troponin said:plz try this :
copy yout template in this folder :

/templates/mytemplate/html/com_k2/templates/mytemplate/category.php

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89962 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Thank you all very much for replies.
What has been done:
1. I've put template files into /templates/mytemplate/html/com_k2/templates/mytemplate/ . Although in community.getk2.org/forum/topics/k2-template-override-package they say different. Didn't help.
2. I've downloaded onecssperK2template and tried all possible setting combination in plugin administration meniu. Didn't help.
3. I've cheked mysql data and found that in database everything is also set to mytemplate. So i guess this means that K2 is getting right settings from database but still using default template.

See image attached how my directory structure looks now ("Elvista" is name of my template).

Any more ideas?..
Attachments:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #89963 by Yiota
Replied by Yiota on topic K2 template override problem
Make sure that the page you are viewing does indeed get the parameters from your template and not from default template.

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89964 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Thank you for the reply.
Yes, i'm sure that correct template is set. See image attached.



Yiota Ziaggou said:Make sure that the page you are viewing does indeed get the parameters from your template and not from default template.
Attachments:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #89965 by Yiota
Replied by Yiota on topic K2 template override problem
Is it possible that this page has the parameters at the menu link and not in the category?

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89966 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Thank you for the reply.
I've checked parameters for meniu link.
Here it is:
Menu item type -> K2 -> Item listings -> Categories

Now here is really interesting part:
On right side, where Parameters (Basic) is, "Select a template" is inactive.
See image attached.
Maybe this has something in common with my problem?





Yiota Ziaggou said:Is it possible that this page has the parameters at the menu link and not in the category?
Attachments:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #89967 by Yiota
Replied by Yiota on topic K2 template override problem
No, you see on the menu link the parameters take effect only when you select more than 1 category, otherwise they inherit each category's parameters.
Is it possible to PM me a link to your site and administration access to it as well to take a look. Maybe there is something we are missing from your description.

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89968 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Thank you in advance for you help.
PM with links and administration access has been sent.



Yiota Ziaggou said:No, you see on the menu link the parameters take effect only when you select more than 1 category, otherwise they inherit each category's parameters. Is it possible to PM me a link to your site and administration access to it as well to take a look. Maybe there is something we are missing from your description.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #89969 by Yiota
Replied by Yiota on topic K2 template override problem
Could you please resent the PM now that I added you as a friend? The message on the invitation is no longer viewable once you accept the invitation.
thank you.

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #89970 by Yiota
Replied by Yiota on topic K2 template override problem
It is not a parameter problem as I can see from your backend. You have set the category parameters correctly.
Could you please try to keep the default folder in your template besides the elvista you already have? (I can't see why this is happening, but let's check this option instead, maybe we figure something out).

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89971 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Thank you for the reply.
You mean like this (see image attached)?





Yiota Ziaggou said:It is not a parameter problem as I can see from your backend. You have set the category parameters correctly. Could you please try to keep the default folder in your template besides the elvista you already have? (I can't see why this is happening, but let's check this option instead, maybe we figure something out).
Attachments:

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 6 months ago #89972 by Yiota
Replied by Yiota on topic K2 template override problem
Yes, exactly. Do you see any difference now when editing the template?

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

  • Elvinas Karalis
  • Elvinas Karalis's Avatar Topic Author
  • Offline
  • New Member
More
14 years 6 months ago #89973 by Elvinas Karalis
Replied by Elvinas Karalis on topic K2 template override problem
Hello, thank you for the reply.
No, changes do not appear. Also i edited freshly cretead "default" template, but it didn't work.
I thought maybe this cuold be some conflict with other modules or components, so i tried disabling everything but K2. It didn't help as well...



Yiota Ziaggou said:Yes, exactly. Do you see any difference now when editing the template?

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


Powered by Kunena Forum