Wrote a plugin to solve an issue when listing categories. Trying to come up with the right description before pushing it out to the world.
Does this make sense? 😠 I am open to suggestions.
List categories from a group that share entries assigned to a single category that resides in a different group.
I’m trying to tailor the description to make the most sense on first read but I’m finding it rather difficult to describe my own plugin.
Here is an example of it’s usage. We have 2 category groups.
Category Group 1 (Country) - Estonia (id:1) - France (id:2) - Mexico (id:3)
Category Group 2 (Sport) - Basketball (id:4) - Baseball (id:5) - Cricket (id:6) - Football (id:7) - Tennis (id:8)
The categories listed on the frontend will be from Category Group 2 (sports). Now let’s say I only want to return sports categories that have entries. We can do this natively in EE, so what’s the big deal? Now what if I want to list the sports categories that have entries, and each entry is assigned to say “Estonia”. I am now filtering my list of categories from Category Group 2 based on a category from Category Group 1 (Estonia), and if both of those categories share a common entry.
{exp:category_knife category_id="1" group_id="2"}Again, open to any suggestions.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.