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 related_categories_mode show ALL entries within parent categories

May 29, 2012 11:52pm

Subscribe [3]
  • #1 / May 29, 2012 11:52pm

    Damien Buckley

    62 posts

    I have a multi-level category structure as per the screenshot.

    I have 3 products in ‘Readymix Concrete & Shotcrete’ and one in ‘Retarding Products’.

    I have only selected the child categories for all i.e. I didnt select ‘Construction & Building Materials’, ‘Concrete Admixtures’ as well as ‘Retarding Products’.

    The problem is, where I’ve used:

    {exp:channel:entries related_categories_mode="yes"}{if count == '1'}<ul>{/if}
            <li>{title}</li>
    {if count == total_results AND count >= '1'}</ul>{/if}{/exp:channel:entries}

    I’m getting all of the products which are in children categories of the ‘Construction & Building Materials’ parent.

    Is this correct? If so, is there a way to display the products only in the child category?

  • #2 / May 30, 2012 8:26am

    Boyink!

    5011 posts

    By default EE will also assign an entry to a parent category when you select a child.  Is that setting still in place?

  • #3 / May 30, 2012 2:44pm

    Shane Eckert

    7174 posts

    Hey Damien,

    Can you checkity check that? Mike is right about that setting.

    Please let us know!

    Cheers,

  • #4 / May 30, 2012 10:04pm

    Damien Buckley

    62 posts

    By default EE will also assign an entry to a parent category when you select a child.  Is that setting still in place?

    I ‘just’ realised that when changing another category preference. I’ll turn that preference off, amend the product categories and see if that solves it.

  • #5 / May 30, 2012 10:09pm

    Damien Buckley

    62 posts

    Yep, thats done it.

  • #6 / May 31, 2012 5:25pm

    Shane Eckert

    7174 posts

    Hey Damien,

    That’s awesome!

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases