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.

Should be easy but i'm stuck. Parent Categories

October 08, 2007 9:09pm

Subscribe [1]
  • #1 / Oct 08, 2007 9:09pm

    [/root.]

    29 posts

    I’m trying to display some subcategories in menu. Here is the code:

    <h2><a href="/trampampam">Basic Security</a></h2>
    <p><ul class='projects'><br />
        {exp:weblog:categories weblog='project' category_group='2' show='61|40|41|42|43' style='linear' show_empty='yes' disable='category_fields'}<br />
        <li><a href="http://{path={category_url_title}}">{category_name}</a></li><br />
        {/exp:weblog:categories}<br />
    </ul>

    Category 61 is a parent category called “Basic Security” the rest is a subcategories. Looks good but we already have the link to the parent category (see content between <h2></h2>)

    So after that i disable the 61 categories from the “show=” parameter and logically we should see only the subcategories but they don’t displaying. Is there a trick to avoid it?

  • #2 / Oct 08, 2007 9:52pm

    MediaGirl Inc.

    186 posts

    I’ve used the Subcategories plugin to do this thing in the past. Not sure you can do it without it…

    http://ellislab.com/forums/viewthread/27220/

  • #3 / Oct 19, 2007 11:19am

    [/root.]

    29 posts

    Thanks. But this plugin doesn’t support url_title_path parameter. Even somebody posted the solution to add that feature. Strange.

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

ExpressionEngine News!

#eecms, #events, #releases