- Posts: 6
COMMUNITY FORUM
Filter by category in tag list
- Jayknight
- Topic Author
- Offline
- New Member
Less
More
7 years 7 months ago #157951
by Jayknight
Filter by category in tag list was created by Jayknight
Hi all,
I'm using tags to display articles related to a certain subject (namely an artist as we're a music website), and would like to offer the ability to filter by catebory (reviews, interviews, videos, etc).
What shoud i do to do that?
I may not be hostile to modify the core query but unfortunately i don't know where it is located. I don't know k2 enough.
I'm using tags to display articles related to a certain subject (namely an artist as we're a music website), and would like to offer the ability to filter by catebory (reviews, interviews, videos, etc).
What shoud i do to do that?
I may not be hostile to modify the core query but unfortunately i don't know where it is located. I don't know k2 enough.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 6 months ago #157972
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Filter by category in tag list
Hello,
The most easy way would be to include a jQuery sorting script, www.sitepoint.com/top-5-jquery-filter-sort-plugins/
You would have to print the category as a CSS class and include a custom filtering menu. This can be done on your overrides.
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
The most easy way would be to include a jQuery sorting script, www.sitepoint.com/top-5-jquery-filter-sort-plugins/
You would have to print the category as a CSS class and include a custom filtering menu. This can be done on your overrides.
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.
- Jayknight
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
7 years 6 months ago #157985
by Jayknight
Replied by Jayknight on topic Filter by category in tag list
Thanks Krikor for your answer.
I think i may have badly explained my need.
Here is an exemple of all the pages containing the tag "Phinehas" : beehave.fr/news/tag/Phinehas
It displays articles from many different categories.
I would like to add some checkboxes on top with every categories, and if the user selects only "Interviews", i want to only display, on the same page, only the articles that have the tag "Phinehas" and are located in the "Interviews" category.
One way of doing that would be to display all articles (not limiting to 5 like now) and filtering via javascript or PHP, but i was wondering if any other solutions would work. In which PHP file is the query done?
I think i may have badly explained my need.
Here is an exemple of all the pages containing the tag "Phinehas" : beehave.fr/news/tag/Phinehas
It displays articles from many different categories.
I would like to add some checkboxes on top with every categories, and if the user selects only "Interviews", i want to only display, on the same page, only the articles that have the tag "Phinehas" and are located in the "Interviews" category.
One way of doing that would be to display all articles (not limiting to 5 like now) and filtering via javascript or PHP, but i was wondering if any other solutions would work. In which PHP file is the query done?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 6 months ago #157996
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Filter by category in tag list
You can use a larger limit in the tag views and implement a script like mentioned above.
Here's another useful link in order to locate the script that works best for your project
www.unheap.com/user-interface/filter-sort/
The file you need to edit is the tag.php file
Here's another useful link in order to locate the script that works best for your project
www.unheap.com/user-interface/filter-sort/
The file you need to edit is the tag.php file
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Jayknight
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
7 years 6 months ago #158294
by Jayknight
Replied by Jayknight on topic Filter by category in tag list
Thanks for the help Krikor!
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 6 months ago #158318
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Filter by category in tag list
You 're welcome :)
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.