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 list various parent and child categories based on URL segment?

April 15, 2010 3:20pm

Subscribe [1]
  • #1 / Apr 15, 2010 3:20pm

    Rob Quigley

    236 posts

    I’m trying to figure out if it’s possible to dynamically list a parent category and its child categories based on a URL segment - is it possible to do this?

    For instance, on the first page I would like to list all the parent categories. Then if someone clicks on one of these (they would be hyperlinked) I would like it to go to another page that lists that parent category and the child categories nested below it.

    Then if someone clicks on one of the child category it goes to a new page and lists all the entries. I could hard code all this into the template I suspect but I’d like to dynamically do this so that other people can add and remove categories and don’t need to touch the templates.

  • #2 / Apr 15, 2010 4:19pm

    Rob Quigley

    236 posts

    Found the solution: using a plugin that shows parent and child categories and can pull the category ID from the URL into the plugin.

    Details on plugin in this thread: http://ellislab.com/forums/viewthread/87639/

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

ExpressionEngine News!

#eecms, #events, #releases