We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 8898
    • 181 Posts
    Hello,

    in my menu snippet I’m selecting resources that are published and not hidden to display only those in the menu:
                $resource = $modx->getObject(
                                'modResource',
                                array(
                                    'id'        => $menuItemId,
                                    'published' => true,
                                    'hidemenu'  => false
                                )
                            );

    This works perfectly for documents, but there’s also a weblink that points to a URL (http://forum.mydomain.tld/). I can unpublish it and "hide it from menus", but it nevertheless shows up in the menu. In the database (table <prefix>_site_content) the values for these settings are saved correctly: published=0 and hidemenu=1.

    Is this a feature I don’t understand or just a bug? wink

    Cheers,
    Jan
      This message has been ROT-13 encrypted twice for higher security.
      • 32699 ☆ A M B ☆
      • 427 Posts
      Attempt to clear the site cache...

      It will sit there.
        Get your copy of MODX Revolution Building the Web Your Way http://www.sanitypress.com/books/modx-revolution-building-the-web-your-way.html

        Check out my MODX || xPDO resources here: http://www.shawnwilkerson.com
        • 8898
        • 181 Posts
        Quote from: wshawn at Mar 02, 2010, 08:33 PM

        Attempt to clear the site cache...

        It will sit there.
        You’re right, thank you very much!

        I didn’t notice that there isn’t an "empty cache" option - there is one for documents, but not for weblinks. Why? huh

        Cheers,
        Jan
          This message has been ROT-13 encrypted twice for higher security.
          • 28215
          • 4,149 Posts
          Quote from: enigmatic_user at Mar 02, 2010, 10:11 PM

          I didn’t notice that there isn’t an "empty cache" option - there is one for documents, but not for weblinks. Why? huh

          That would definitely be a bug. Can you file it here? http://bugs.modxcms.com/
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 8898
            • 181 Posts
            Quote from: splittingred at Mar 02, 2010, 11:55 PM

            That would definitely be a bug. Can you file it here? http://bugs.modxcms.com/
            Done. smiley

            Cheers,
            Jan
              This message has been ROT-13 encrypted twice for higher security.