We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23515
    • 40 Posts
    Is there anyway to get a ditto call to display both unpublished and published docs? It looks like the documentation could do with an edit on this subject (extract from here:http://ditto.modxcms.com/files/snippet-ditto-php.html#showPublishedOnly):

    Purpose

    Show only published documents
    Options
    0 show only unpublished documents
    1 show both published and unpublished documents
    Default
    1 show only published documents

    In the Ditto snippet code itself, showing both is down as a to do. So has anyone actually done this? If not, fancy giving me some pointers so I can do it?

    Thanks

      • 36592
      • 970 Posts
      I think...

      0 show only unpublished documents
      1 show both published and unpublished documents
      Default
      1 show only published documents
      should be

      0 show both published and unpublished documents
      1 show only published documents
      Default
      1 show only published documents
        • 18397
        • 3,250 Posts
        @pixillionsaul
        This feature was implemented in Ditto 2.1. You will need to download and install the update via the link in my signature.
          • 23515
          • 40 Posts
          Excellent thanks!!