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.

restrict display to child categories

September 03, 2007 4:57am

Subscribe [2]
  • #1 / Sep 03, 2007 4:57am

    Meir

    80 posts

    when I create entries in weblog/category/subcategory, I want them to NOT appear when viewing weblog/category. In other words, I want viewers to see entries from a subcategory ONLY when they’re viewing that subcategory, and NOT when viewing the parent category.

    I need a way to do this dynamically (meaning I can’t use “if category=100” statements because there are too many categories and new ones being created regularly). Is there some glaringly obvious method to do this which I am missing?

    thanks a lot

    /\/\
    Meir

  • #2 / Sep 03, 2007 9:16am

    silenz

    1651 posts

    First thing to check:
    Are you aware of the following setting:
    CP Home ›  Admin ›  Weblog Administration ›  Global Weblog Preferences › Auto-Assign Category Parents?

  • #3 / Sep 03, 2007 9:38am

    Meir

    80 posts

    Hi silenz, that was in fact checked, but unchecking it did not fix the problem.

    Any other ideas? EE gurus anyone?

  • #4 / Sep 03, 2007 9:52am

    silenz

    1651 posts

    While this is enabled, the parent category is automatically added when submitting an entry. Even if you have only checked the subcategory in the publish form.

    Probably your existing entries have more categories assigned to them than you realized…

  • #5 / Sep 03, 2007 10:04am

    Meir

    80 posts

    100% right. Thanks silenz!

  • #6 / Sep 04, 2007 10:04am

    Robin Sowell

    13255 posts

    Thanks for the assist, silenz.  The advice was dead on.

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

ExpressionEngine News!

#eecms, #events, #releases