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.

Nested categories in urls?

November 18, 2007 6:13pm

Subscribe [2]
  • #1 / Nov 18, 2007 6:13pm

    NL

    5 posts

    Hi all,

    I’m still very new to EE but the concept of nested categories is something I don’t get. What exactly is the purpose of nesting categories? I was thinking this would let me access entries in the following format:

    <a href="http://www.example.com/index.php/weblog/template/category-indicator/">http://www.example.com/index.php/weblog/template/category-indicator/</a>
    parent-category/child-category/entry-name

    However, this does not seem to work. I can only access them using a url like:

    <a href="http://www.example.com/index.php">http://www.example.com/index.php</a>
    /weblog/template/entry-name

    Also showing a category using a nested url does not work:

    <a href="http://www.example.com/index.php/weblog/">http://www.example.com/index.php/weblog/</a>
    template/category-indicator/parent-category/child-category/

    unless I write it like:

    <a href="http://www.example.com/index.php/weblog/">http://www.example.com/index.php/weblog/</a>
    template/category-indicator/parent-category/category-indicator/child-category/

    Is it something I do wrong? I’m trying to mimic a hierarchical (static) site structure, where urls are in the form of

    <a href="http://www.example.com/maincategory/subcategory/sub-subcategory/page.html">http://www.example.com/maincategory/subcategory/sub-subcategory/page.html</a>

    Thanks!

  • #2 / Nov 18, 2007 6:58pm

    Boyink!

    5011 posts

    Nested categories are not reflected in the URL structure - they’re really for display purposes only.

    URL structure overview:
    http://expressionengine.com/docs/general/urls.html

    Category URL preferences:
    http://expressionengine.com/docs/cp/admin/weblog_administration/global_weblog_preferences.html

  • #3 / Nov 18, 2007 7:58pm

    NL

    5 posts

    Nested categories are not reflected in the URL structure - they’re really for display purposes only.

    URL structure overview:
    http://expressionengine.com/docs/general/urls.html

    Category URL preferences:
    http://expressionengine.com/docs/cp/admin/weblog_administration/global_weblog_preferences.html

    Thanks, clears up a lot 😉

    Still one question. Why would you want to nest categories when there effectively is no hierarchical structure between them (that can be used within tags)?

  • #4 / Nov 18, 2007 8:48pm

    Boyink!

    5011 posts

    Nested categories can still be handy for displaying categories, and I’ve also used them (with the odd plug-in here and there) for building navigation/breadcrumb trails.

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

ExpressionEngine News!

#eecms, #events, #releases