EllisLab text mark
Advanced Search
     
Category children with same name filterable under Parent categories?
Posted: 15 July 2012 03:00 AM   [ Ignore ]
Joined: 2010-10-30
42 posts

Hi reading through various tutorials prior to getting EE…

Can child categories be called the same name and act as a filter under the parent category, ie

Parent category:
Big
Medium
Small

Child category:
Red
Brown
Orange

eg categories listed as
BIG
Red / Brown / Orange

MEDIUM
Red / Brown / Orange

SMALL
Red / Brown / Orange

Would the child categories filter within the size (parent) categories or are child/parent for styling only?
After some kind of way to achieve this

Thanks

 
Posted: 15 July 2012 04:10 AM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2005-08-16
445 posts

You may want to look at http://ee-garage.com/nsm-categories where Leevi Graham compares and contrasts basic ee category functionality v his expanded capability

 
Posted: 15 July 2012 08:03 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-06
4251 posts

All categories get unique ID’s and category URL titles, so you can return results from them independently.

Hierarchy is for display only -  you won’t see it in your URLs, and you aren’t really filtering “within” a parent category when you select a child.

 Signature 

Get the missing EE2 owner’s manual - a complete guide to building an EE2 site.  It’s available in PDF or print.

 
Posted: 15 July 2012 09:26 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

Thanks for the feedback, looks like NSM categories could maybe do filtering within a parent category though awaiting feedback.
Thanks for Sunday responses, much appreciated.

 
Posted: 15 July 2012 10:02 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2002-12-06
4251 posts

Just to be clear - if you setup a category group with the structure of

Big
Red Orange Yellow

Medium
Red Orange Yellow

Small
Red Orange Yellow

You could click “Small/Orange” and get just the entries assigned into that category.

No addon required.

 Signature 

Get the missing EE2 owner’s manual - a complete guide to building an EE2 site.  It’s available in PDF or print.

 
Posted: 15 July 2012 12:15 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

Oh I see, wow thats great - opens up a new door of opportunity.
Thanks Mike I really appreciate you going the extra mile to make the concept tangible - I’m getting there, thanks to some great tutorials and v. helpful advice,
Cheers
Kevin

 
Posted: 16 July 2012 09:40 AM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Kevin,

Thanks for posting your question to the Forums!

Mike has given you some great pointers.

Let us know if you have any other questions.

Cheers,

 Signature 

How may I help you?

 
Posted: 29 July 2012 03:22 PM   [ Ignore ]   [ # 7 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

Hi,  actually yes - had a look at Mike’s vid on relationships (and Playa)

and working on navigation for a wine category section:

The main categories will be, for example:
BURGUNDY (region)
when that category is viewed as a list - a submenu would appear with different years (within that category)
eg: 1995, 1997, 2003, ALL
so the viewer can display the wines within a region (Burgundy, and ALSO in that specific region, wines under a certain year, or all (1995, 1997, 2003, ALL)
…and the same for the other categories (wine regions, eg: RHONE | MERLOT etc)

Am I right in thinking Categories and nested Categories would work here?
However, as the list of years (nested categories) won’t be known until the author enters more wines/vintages - I want to make it easy for them to be able to add the years (nested categories) to each parent Category without too much access to the control panel, in that case would using relationships be better - creating the years as entries in a years Channel and relating to the Wine Region Channel entries?

Would be very grateful for the most efficient approach…
Thanks!

 

 
Posted: 29 July 2012 04:56 PM   [ Ignore ]   [ # 8 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

Sorry an additional question based on above…
is it possible to somehow use a custom field as a nested category, eg:
if for a wine product entry, one of the fields was for ‘year’ (eg: 2007) that custom field data in this case, ‘2007’ be used to make up the nested categories, or similar navigational system. Seen some tutorials on MySQL queries using the SQL Manager which look interesting. Ultimately I want to be able to allow visitors to search via the search box (front end) for wine years and regions…

Thanks again

 
Posted: 30 July 2012 11:05 AM   [ Ignore ]   [ # 9 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi pixelcamp,

I think the category idea is fine for the regions, but any time you need to work with date information, it would be wise to use the Entry Date field for the entry. The entry date provides a lot of flexibility for start_on and stop_by for date ranges.

With that, for each vintage, you can assign the region as a category, and the vintage will be properly dated.

That would also allow for all “1997” vintages to be automatically grouped together and for all regions to be grouped together.

Let me know what you think!

Cheers,

 Signature 

How may I help you?

 
Posted: 30 July 2012 12:28 PM   [ Ignore ]   [ # 10 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

Thanks Dan, sounds good! but I don’t want all vintages grouped, but assigned to a region only,
ultimately I would want to allow the author to publish a Channel entry and use a custom field (year) for the vintage navigation to be nested under each region BUT the vintage be assigned ONLY to that region and not all regions eg

Burgundy >1995

would show results for Burgundy wines of the vintage 1995
and NOT all 1995 wines under any region.

Also allowing the author to publish info only once rather than type in the vintage of a wine (custom field/or entry date?) and then retype that year as a nested category

Thanks

 
Posted: 30 July 2012 01:53 PM   [ Ignore ]   [ # 11 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Also allowing the author to publish info only once rather than type in the vintage of a wine (custom field/or entry date?) and then retype that year as a nested category

Right, the author would only need to assign the “vintage” via the entry date. I recommend entry date because it provide the most flexibility for controlling the range of dates (vintages) displayed. The date field type is a bit more limited because it can’t be targeted by parameters in with the channel entries tag.

The idea is not an either-or scenario. Regions as categories and vintages as entry date, IMO, allow for maximum flexibility. That means you can group and display, or not, as you need to. So…

...NOT all 1995 wines under any region.

Is merely and option available to you, but so is…

Burgundy >1995

Does that make sense?

 Signature 

How may I help you?

 
Posted: 30 July 2012 02:09 PM   [ Ignore ]   [ # 12 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

Dan thats awesome, exactly what I want thank so much! I love the EE community!!!

 
Posted: 30 July 2012 03:17 PM   [ Ignore ]   [ # 13 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi pixelcamp,

I love the Community too!

Is there anything else I can assist you with?

Cheers,

 Signature 

How may I help you?

 
Posted: 30 July 2012 05:07 PM   [ Ignore ]   [ # 14 ]   [ Rating: 0 ]
Joined: 2010-10-30
42 posts

No you’ve been an immense help, thanks Dan

 
Posted: 31 July 2012 09:55 AM   [ Ignore ]   [ # 15 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hi pixelcamp,

I am glad that Dan was able to help you out!

If you need anything else, please just let me know by opening a new thread.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade