- Posts: 10
COMMUNITY FORUM
Items in Multiple Categories
- Adam Rifat
-
Topic Author
- Offline
- New Member
It would be great if you could - or if you are planning to even greater...!?
Thanks.
Please Log in or Create an account to join the conversation.
- Ronald Durrer
-
- Offline
- New Member
- Posts: 2
Thanks.
Please Log in or Create an account to join the conversation.
- Kristiyan Ivanchevski
-
- Offline
- Junior Member
- Posts: 23
Please Log in or Create an account to join the conversation.
- Tomasz Bieliński
-
- Offline
- Senior Member
- Posts: 42
Please Log in or Create an account to join the conversation.
- Jaakko Karhu
-
- Offline
- New Member
- Posts: 13
Please Log in or Create an account to join the conversation.
- FeSys
-
- Offline
- Elite Member
- Posts: 262
Hi.. @RW Dura, @Kristiyan Ivanchevski, @Tomasz Bielinski, @Jaakko Karhu
You can do that now..other way.
How?
Search for K2 by tag module...install it.
Create your tags.. assign all items from different categories to one/two tags..
Publish your module..
That is it.. Have a nice day.
Please Log in or Create an account to join the conversation.
- huntsman007
-
- Offline
- New Member
- Posts: 3
as wrote Tomasz Bielinski: "tagging function serves as a substitute" and I agree with that.
When K2 will fully support multiple categories? Who knows? Is very important to me functionality.
Please Log in or Create an account to join the conversation.
- Adam Rifat
-
Topic Author
- Offline
- New Member
- Posts: 10
e.g.
/category1/article1
/category2/article1
which is bad from an SEO point of view as a search engine would consider this as duplicated content and neither page could rank as well as one page containing the same content.
The tagging feature works around this by simply tagging articles that cover more than one 'category'. I suppose the best way to go is to put the article in the most appropriate category and then tag it with other relevant categories so people can actually find it.
Please Log in or Create an account to join the conversation.
- huntsman007
-
- Offline
- New Member
- Posts: 3
For example:
article: Community Builder
is on:
- category-1: Communities
- category-2: Editors' Picks
but is on one link: extensions.joomla.org/extensions/communities-a-groupware/communities/210
(no duplicated content)
It is based on tags?
Please Log in or Create an account to join the conversation.
- bkemler
-
- Offline
- Premium Member
- Posts: 87
huntsman007 said:yes, it's true that the problem is SEO. But how Items in Multiple Categories operate on extensions.joomla.org / extensions /?
For example:
article: Community Builder
is on:
- category-1: Communities
- category-2: Editors' Picks
but is on one link: extensions.joomla.org/extensions/communities-a-groupware/communities/210
(no duplicated content)
It is based on tags?
Please Log in or Create an account to join the conversation.
- Adam Rifat
-
Topic Author
- Offline
- New Member
- Posts: 10
E.g. a 'category content' module could simply pick out two or three items from a particular category and display intro text.
So the url would be set up as /editors-pick with a module published to that page which picks up either tagged articles or simply the articles could be specified by ID number in the module admin screen.
Either way would probably work and means the article is actually only published in ONE cat!
Please Log in or Create an account to join the conversation.
- Ivan Descartes
-
- Offline
- New Member
- Posts: 10
So how to implement? Here is the best way:
First, from the item creation, it can be assigned to multiple categories. 1 category is set as the primary category, and this category is stored in catid in the database (for compatibility). All other categories are stored in a new database table that maps items to categories by paths. The schema for this table:
ID (primary key) ItemID CatID PathID (optional)
The ID is just the primary key. The ItemID stores the article ID. The cat ID stores the CatID. The PathID is an optional parameter that reflects if this is path 1, path 2, path 3, .... to get to this item.
Any time an item is created, we make unique entries for each category assignment. This puts the database load on the item creation rather than search (if we had put all of the categories comma-separated in the original items table). When a category listing is requested, we just find all of the items in this Paths table that match, and list them. Other modules that use K2 should start using this table.
So for URLs, there is an SEO way and a non-SEO way, I want to highlight both, and suggest the SEO way.
SEO way: only 1 url per article. Unless some magical cookies or database are used, the page cannot reflect which category the user arrived by.
non-SEO way: multiple urls per article. This allows the URL to reflect the category that the viewer reached the item by. However, it also means that there are multiple URLs for the same item. This could be done simply by appending the "path" to the end of the URL to allow K2 breadcrumbs to properly display the path, or the whole url would be set correctly (the latter being preferable).
Let me know if this makes sense. The feature is quite important if K2 wants to be THE content solution.
Balgas said:If someone knows how create a second category for one item, i'm ok to know the solution :)
Please Log in or Create an account to join the conversation.
- Ivan Descartes
-
- Offline
- New Member
- Posts: 10
Please Log in or Create an account to join the conversation.
- FidelGonzales
-
- Offline
- Premium Member
- Posts: 95
But, the only answer I have ever received from Fotis says it will never be done. Though, there are some great arguments for such capability in this thread and suggestions on how to get it done.
Please Log in or Create an account to join the conversation.
- Abdul Muhaymin
-
- Offline
- Junior Member
- Posts: 28
Ivan Descartes said:This is such an important feature for K2, and the implementation is not impossible. First, I will say why this is important: Users should be able to navigate content listings, and find an item by different paths, without copying content between categories. So unless K2 can make NESTED TAGS (which would effectively be the same as multiple categories), this is still important. Think about Ebay or another retailer that puts links to items under "Bestsellers" and also "Video Games". So how to implement? Here is the best way:
First, from the item creation, it can be assigned to multiple categories. 1 category is set as the primary category, and this category is stored in catid in the database (for compatibility). All other categories are stored in a new database table that maps items to categories by paths. The schema for this table:
ID (primary key) ItemID CatID PathID (optional)
The ID is just the primary key. The ItemID stores the article ID. The cat ID stores the CatID. The PathID is an optional parameter that reflects if this is path 1, path 2, path 3, .... to get to this item.
Any time an item is created, we make unique entries for each category assignment. This puts the database load on the item creation rather than search (if we had put all of the categories comma-separated in the original items table). When a category listing is requested, we just find all of the items in this Paths table that match, and list them. Other modules that use K2 should start using this table.
So for URLs, there is an SEO way and a non-SEO way, I want to highlight both, and suggest the SEO way.
SEO way: only 1 url per article. Unless some magical cookies or database are used, the page cannot reflect which category the user arrived by.
non-SEO way: multiple urls per article. This allows the URL to reflect the category that the viewer reached the item by. However, it also means that there are multiple URLs for the same item. This could be done simply by appending the "path" to the end of the URL to allow K2 breadcrumbs to properly display the path, or the whole url would be set correctly (the latter being preferable).
Let me know if this makes sense. The feature is quite important if K2 wants to be THE content solution.
Balgas said:If someone knows how create a second category for one item, i'm ok to know the solution :)
Please Log in or Create an account to join the conversation.
- irish
-
- Offline
- Senior Member
- Posts: 53
Please Log in or Create an account to join the conversation.
- Abdul Muhaymin
-
- Offline
- Junior Member
- Posts: 28
irish said:I think there is an issue with this due to the database and items having the same id. If you only create one item then that one item id cannot be assigned to more than one category as it is in joomla. I have searched and had someone work on this and was told it cannot be done in joomla. That was what I was told, however I still think it should be possible.
Please Log in or Create an account to join the conversation.
- irish
-
- Offline
- Senior Member
- Posts: 53
Abdul Muhaymin said:The option is available in Zoo of Yoothemes, and attachments is problem
irish said:I think there is an issue with this due to the database and items having the same id. If you only create one item then that one item id cannot be assigned to more than one category as it is in joomla. I have searched and had someone work on this and was told it cannot be done in joomla. That was what I was told, however I still think it should be possible.
Please Log in or Create an account to join the conversation.
- Abdul Muhaymin
-
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- irish
-
- Offline
- Senior Member
- Posts: 53
Please Log in or Create an account to join the conversation.