Keyword

K2 data group for sub(sub) categories

  • PieterBum
  • PieterBum's Avatar Topic Author
  • Offline
  • New Member
More
1 week 3 days ago #171681 by PieterBum
PieterBum created the topic: K2 data group for sub(sub) categories
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 </img>

____
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
1 week 3 days ago - 1 week 3 days ago #171682 by PieterBum
PieterBum replied the 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: 1 week 3 days ago by PieterBum.

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

  • PieterBum
  • PieterBum's Avatar Topic Author
  • Offline
  • New Member
More
1 week 1 day ago #171701 by PieterBum
PieterBum replied the topic: K2 data group for sub(sub) categories
Well this is useful.

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

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
5 days 16 hours ago #171749 by Fotis
Fotis replied the 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.


If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

Moderators: william white

Powered by Kunena Forum