EllisLab text mark
Advanced Search
     
categories tag not showing child categories of parent
Posted: 09 June 2012 07:56 PM   [ Ignore ]
Avatar
Joined: 2003-11-12
391 posts

I have this code:

{exp:weblog:categories category_group="2" style="linear" weblog="accommodations" show="7"}

<li{category_name}

{
/exp:weblog:categories} 

category 7 is a parent category of 2 child categories.  When I run this script, only the parent category (7) is showing.  I thought it was supposed to list the child as well?

This is the only code I have on this template.


UPDATE:  I realized now that this is a limitation of EE and that there was a child categories plugin to address this.

==========================

 

 Signature 

version 1.6.7
Build:  20090515

 
Posted: 09 June 2012 08:27 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2003-11-12
391 posts

Here’s a new problem


I am having a new problem though:

{exp:weblog:categories category_group="2" style="linear" weblog="accommodations" show="5" show_empty="yes"}

{category_name}

{
/exp:weblog:categories} 

5 is a child category.  the code above does not work.  When I replace 5 with 7 (the parent category) it works.  Why doesn’t it like child categories?


Using 1.7.2

Am i overlooking something obvious?

Thank

 

 Signature 

version 1.6.7
Build:  20090515

 
Posted: 11 June 2012 11:42 AM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Ryan,

The only question I can think of is - is category ID 5 in category group 2?

If you remove the category_group parameter, does ID 5 show?

Cheers,

 Signature 

How may I help you?

 
Posted: 11 June 2012 01:37 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2003-11-12
391 posts

Hi Dan,

Yes cat 5 is in group 2

I removed the category_group parameter.  cat 5 still does not show.

I also tried:

{exp:weblog:categories  style="linear"  show="5" show_empty="yes"}

{category_name}

{
/exp:weblog:categories} 

and it doesn’t work

 

 Signature 

version 1.6.7
Build:  20090515

 
Posted: 13 June 2012 03:50 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Ryan,

Bizarre! Can we get in for a look? Be on the look out for an email from me!

Cheers,

 Signature 

How may I help you?

 
Posted: 27 June 2012 06:28 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Joined: 2008-02-08
3 posts

Hi Dan,

FYI I’m having exactly the same issue - so if there’s any progress made, I’d appreciate a heads up too!

Even when specified in show, child categories will not display:
E.g:

<ul>
{exp:channel:categories channel="products" style="linear" show="2"}
 
 
<li><a href="{path='catalog/category'}">{category_name}</a></li>

{/exp:channel:categories}
</ul

In the above example, category ID 2 is a child of ID 7.  If I change to show=“7”, it will display the parent though.

Thanks,

Matt

 
Posted: 29 June 2012 04:36 PM   [ Ignore ]   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2005-10-18
7340 posts

Hi Matt,

Ryan hasn’t gotten back to us yet. I like to do what I can to help you though!

What version of ExpressionEngine are you using?

Cheers,

 Signature 

How may I help you?