We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10405
    • 288 Posts
    Hi, I’m using the following Ditto call for a blog system, with a Filter set in order to stop child containers from being outputted along with recent blog posts:

    [!Ditto? &parents=`10` &depth=`0` &filter=`id,12,13,14,15,16` &sortBy=`createdon` &showPublishedOnly=`1` &tpl=`ditto.archivesummary`!]

    So in theory it should stop containers with IDs 12 to 16 being shown. Unfortunately it isn’t working... can’t see why? Anyone have any ideas?
      • 12379
      • 460 Posts
      &filter=`id,12,2|id,13,2|id,14,2|id,15,2|id,16,2`
        Mostly harmless.
        • 10405
        • 288 Posts
        Thanks- seems to work well. I guess the "2" is interpreted as exclude... would a "1" be include?
          • 12379
          • 460 Posts
          No, it means the opposite - "exclude any document whose id field DOES NOT EQUAL 12 or 13 etc".

          http://ditto.modxcms.com/tutorials/basic_filtering.html
            Mostly harmless.