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.

Category URLs

October 07, 2010 7:28am

Subscribe [2]
  • #1 / Oct 07, 2010 7:28am

    drew77

    2 posts

    Hi,

    I currently have a different template group for each page on my site. Each template is then populated by a channel.

    I have recently been asked to add a blog to the site with the possibility of having multiple levels of categories and an archive. So I went down the same route. I added a blog channel and a blog template group with an index page to display all entries, a detail page to display a single entry and an archive page to display entries by year/month.

    I then tried to include a category group to manage the entries hierarchy. When I add a category and assigned it to a parent I imagined that the url’s would be automatically generated like: /blog/category/category1/subcategory1 but at the moment it creates a url like: /blog/category/subcategory1 missing out the category1 parent. I need to do it like this so that I can generate a breadcrumb trail from the url. Is there any way to do this?

    Thanks

  • #2 / Oct 07, 2010 3:56pm

    Ingmar

    29245 posts

    I currently have a different template group for each page on my site. Each template is then populated by a channel.

    That does sound somewhat complicated (and needlessly so), if you don’t mind me saying.

    When I add a category and assigned it to a parent I imagined that the url’s would be automatically generated like: /blog/category/category1/subcategory1 but at the moment it creates a url like: /blog/category/subcategory1 missing out the category1 parent.

    Yes, that would be correct and expected behavior. I suggest you read up on categories a bit, this is a great place to start.

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

ExpressionEngine News!

#eecms, #events, #releases