Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Kory 14 posts 34 karma points
    Nov 07, 2013 @ 21:38
    Kory
    0

    Categories still showing even though "Display on web site" unchecked

    Hi,

    At http://www.theframeroom.com/pre-made-frames.aspx I have unchecked the "Display on web site" checkbox in uCommerce for several categories, for instance Moulding, Mats, and Material.

    But, they are still showing in the menu on the left.

    Any clues?

    Thanks.

    Kory

  • lj 81 posts 425 karma points
    Nov 08, 2013 @ 00:55
    lj
    1

    Hi Kory

    In the script (assuming you are using razor) where you are getting/listing the categories the code should be something like

    var cats = Category.All().Where(c=>c.DisplayOnSite == true);

    this should filter out the ones where display on site checkbox is unchecked.

     

  • Kory 14 posts 34 karma points
    Nov 12, 2013 @ 20:54
    Kory
    0

    Shouldn't that be in the core Umbraco code by default?  Just wondering why I would need to set that.

    Also, I am using uCommerce so not sure if it's some sort of conflict.

    Thanks.

  • Kory 14 posts 34 karma points
    Nov 12, 2013 @ 22:16
    Kory
    0

    Also, are your refering to the scripting file uCommerce/LeftNavigation.cshtml?

    Thanks again.

    Kory

  • Morten Skjoldager 440 posts 1499 karma points
    Nov 13, 2013 @ 14:22
    Morten Skjoldager
    0

    Yes, Left navigation renders the categories. You need to set that. It has nothing to do with Umbraco. It's all uCommerce there. 

    You could do it like this on line 10 in LeftNavigation:

    @foreach (var category in categories.Where(x => x.DisplayOnSite)) 

Please Sign in or register to post replies

Write your reply to:

Draft