ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

dynamically displaying sub-categories from a parent category

June 05, 2008 7:24pm

Subscribe [4]
  • #1 / Jun 05, 2008 7:24pm

    Craig S.

    12 posts

    Moderator’s note: Merged & moved to Howto.

    How can I display just the immediate sub-categories from the current category I am viewing?

    I am using the category name in url feature

    My categories are as such:

    Dogs
    -Big Dogs
    —Dalmatians
    —Great Danes
    -Small Dogs
    —Terriers
    —Chihuahua s

    If I am on viewing the mysite.com/category/Dogs

    I want to list the two sub categories: Big Dogs, Small Dogs

    If I am l viewing mysite.com/category/Big_Dogs

    I want to list the two sub categories: Dalmations, Small Dogs

    How would I do this with ExpressionEngine?

  • #2 / Jun 24, 2008 2:18pm

    Craig S.

    12 posts

    Does anyone know an answer to this one?

  • #3 / Jun 24, 2008 2:22pm

    Craig S.

    12 posts

    How can I display just the immediate sub-categories from the current category I am viewing?

    I am using the category name in url feature

    My categories are as such:

    Dogs
    -Big Dogs
    —Dalmatians
    —Great Danes
    -Small Dogs
    —Terriers
    —Chihuahua s

    If I am on viewing the mysite.com/category/Dogs

    I want to list the two sub categories: Big Dogs, Small Dogs

    If I am l viewing mysite.com/category/Big_Dogs

    I want to list the two sub categories: Dalmations, Small Dogs

    How would I do this with ExpressionEngine?

  • #4 / Jun 24, 2008 9:42pm

    Sue Crocker

    26054 posts

    Most people use the Subcats Plugin

    It’s not meant to be used with category names in url titles, but you could do some query magic to grab the parent id based on the segment, and then post the child items.

    But that would be a HowTo question instead of a Technical Support question.

  • #5 / Jun 25, 2008 5:04am

    silenz

    1651 posts

    You could also try this plugin ...

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases