Keyword

K2 data group for sub(sub) categories

  • PieterBum
  • PieterBum's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 weeks ago #171681 by PieterBum
K2 data group for sub(sub) categories was created by PieterBum
Hey all,
I'm guessing I won't find the answer here, but I'll try it anyway:

I'm editing a website, and this site uses data-groups, of which I'm not familiar (enough) with.
Example:
*category = groceries
*subcategory = drinks
*subsub(?)category = soda

(Sorry, since the site thinks I post spam, I need to put my question in an image here)
<img>i.ibb.co/t3XPX0H/help001.png

____
On the page, there's a button which displays "Drinks". When clicked, all the items in this category appears.
I can find the subcategory back in K2/categories, (Groceries > Drinks).

However, I now need to make a dropdown with more sub(sub)categories. So in K2/categories, I make one called "Soda". But no matter what I do, a button with <li class="active" data-group="Soda"> does not work.

How do I get this to work?

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

  • PieterBum
  • PieterBum's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 weeks ago - 5 years 2 weeks ago #171682 by PieterBum
Replied by PieterBum on topic K2 data group for sub(sub) categories
so if I want to place a subsubcategory under the subcategory, I would place
<ul><strong>Tools</strong>
<li class="force-css" data-group="Soda"><a href="#">Block 1</a></li>

but that doesn't do anything. What am I supposed to type there? Nothing seems to work...

In other words, how do you make a subsubcategory, and what do I type in its data-group tag?
Do I need to add php or js somewhere to make it work?
Last edit: 5 years 2 weeks ago by PieterBum.

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

  • PieterBum
  • PieterBum's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 weeks ago #171701 by PieterBum
Replied by PieterBum on topic K2 data group for sub(sub) categories
Well this is useful.

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

More
5 years 1 week ago #171749 by JoomlaWorks
Replied by JoomlaWorks on topic K2 data group for sub(sub) categories
If you refer to category.php and how it displays categories and their children, the relationship is always parent-children, in 2 levels only. When you'd click a subcategory, if it has children, they would show up as well. But you can't currently have 3 levels of categories in first view of a category.

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

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


Powered by Kunena Forum