- Posts: 8
COMMUNITY FORUM
[SOLVED] Ordering K2 tags alphabetically
- Catherine Mollet
- Offline
- New Member
Less
More
6 years 5 months ago #164910
by Catherine Mollet
Replied by Catherine Mollet on topic Ordering K2 tags alphabetically
Thanks a lot Razen! Saved my life ;-)
Please Log in or Create an account to join the conversation.
- Christophe BERTRAND
- Offline
- Senior Member
Less
More
- Posts: 46
6 years 5 months ago #165002
by Christophe BERTRAND
Replied by Christophe BERTRAND on topic Ordering K2 tags alphabetically
Hi,
Sorry to insist on this post.
I understand Razen and Catherine made it work, but I can't.
I am probably missing something, but whatever item.php file I modify (in template/html/... or even in administrator/component/...) with Razen's method, the tags when I add (or edit) a k2 item never order in alphabetical order !
Could you please help again ?
Thanks
Sorry to insist on this post.
I understand Razen and Catherine made it work, but I can't.
I am probably missing something, but whatever item.php file I modify (in template/html/... or even in administrator/component/...) with Razen's method, the tags when I add (or edit) a k2 item never order in alphabetical order !
Could you please help again ?
Thanks
Please Log in or Create an account to join the conversation.
- razen
- Offline
- Senior Member
Less
More
- Posts: 46
6 years 5 months ago #165009
by razen
Replied by razen on topic Ordering K2 tags alphabetically
Where do you want to modify the sorting of the tags?
I would recommend that you first identify the right template with an X somwhere in the file temporary untill you found it - cause youÄre simply in the wrong file yet (as far as I can see).
For the frontend, there should be a file in the template you use - if it doesnt exist, create it:
templates/[yourtemplate]/com_k2/default/item.php
I would recommend that you first identify the right template with an X somwhere in the file temporary untill you found it - cause youÄre simply in the wrong file yet (as far as I can see).
For the frontend, there should be a file in the template you use - if it doesnt exist, create it:
templates/[yourtemplate]/com_k2/default/item.php
Please Log in or Create an account to join the conversation.
- Christophe BERTRAND
- Offline
- Senior Member
Less
More
- Posts: 46
6 years 5 months ago - 6 years 5 months ago #165014
by Christophe BERTRAND
Replied by Christophe BERTRAND on topic Ordering K2 tags alphabetically
Hi Razen,
Thanks for your response.
I will try, but so far I changed it where yoy say.
Where I want to sort the Tags is when I create (or edit) a K2 item in the back-end (or front-end) in the left box tags (I think by default thy are sorted out by # of IDs).
For this, should the changes be in templates/[yourtemplate]/com_k2/default/item.php ? or in an itemform.php ?
Thanks
Christophe
Thanks for your response.
I will try, but so far I changed it where yoy say.
Where I want to sort the Tags is when I create (or edit) a K2 item in the back-end (or front-end) in the left box tags (I think by default thy are sorted out by # of IDs).
For this, should the changes be in templates/[yourtemplate]/com_k2/default/item.php ? or in an itemform.php ?
Thanks
Christophe
Last edit: 6 years 5 months ago by Christophe BERTRAND.
Please Log in or Create an account to join the conversation.
- razen
- Offline
- Senior Member
Less
More
- Posts: 46
6 years 5 months ago #165015
by razen
Replied by razen on topic Ordering K2 tags alphabetically
I never looked into this, but I'm quite sure the file for this is in administrator/components/com_k2 or so.
And I also think that my method wont work for those backend-tags, cause those are no simple links
And I also think that my method wont work for those backend-tags, cause those are no simple links
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
6 years 5 months ago #165126
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Ordering K2 tags alphabetically
It depends on which tags you want to sort.
The code here is for the item.php file which should be overriden.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
The code here is for the item.php file which should be overriden.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.