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

    Sure enough, just when I thought that we might get to a point where the code base would arrive at a maintenance only state it ends up with more features. Yep, that’s right, more features. Let’s see if I can list them all. Probably not off the top of my head, anyway.

    Todays addition was adding a feature that allows flagging documents to either allow or disallow some of the most used API functions (getAllChildren, getActiveChildren, getDocuments) from including them in query results. The new column which was added to the site_content table is named showinmenu which, oddly enough, is somewhat self-explanatory. This also entailed modifications to several of the manager modules and the main index.php parser file. I also created a small script in the install directory which, when run, will add the new data column into the database. The default setting is to have all documents gathered by queries from the functions mentioned above. Unchecking the checkbox on the Publishing tab of the document management panel will cause these functions to ignore that particular document when a query is performed. There is, however, an override parameter that can be sent in a function call. Sending $showhidden=true in the function call will cause all documents to be included regardless of their showinmenu setting.

    Sound familiar? Now who’s copying who?
      • 25663 MODX Staff
      • 12,272 Posts
      Better question, who cares? LOL
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me