We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13825
    • 55 Posts
    I’ve go a page using newspublisher and ditto - but I want to show both unpublished and published documents in the same list...anyone know how?

    Futher to that - anyone know of a decent proven way to allow web users to edit/save documents? Basically NewsPublisher but with edit facility.

    Thanks
      • 18397
      • 3,250 Posts
      First you will need to upgrade to Ditto 2.1 as a bug in 2.0.3 will keep the following features from working.
      To show both unpublished and published documents use &showPublishedOnly=`0`
      As for editing, I saw something called NewsManager or something like that some time ago that might be of help.
        • 13825
        • 55 Posts
        Thanks Mark...

        Will try Ditto 2.1 ...is this a stable version?

        Will give NewsManager another try...seemed to not work very well so I might write something instead...(essentially to edit an item is as simple as a db select and update isn’t it - especially if you’re not using tv’s?


          • 2132
          • 3 Posts
          For web user editing/saving: try Front End Document Manager (FDM), i guess it’s still on rather early stage of development but already seems to work a lot better than NewsManager.
            • 17673
            • 194 Posts
            To show both unpublished and published documents use &showPublishedOnly=`0`

            and how do I only show the unpublished ones ?

            BTW the inline documentation inside snippet.ditto.php contadicts itself on this:
            Options:
            0 - show only unpublished documents
            1 - show both published and unpublished documents [glow=red,2,300][!!!][/glow]

            Default:
            1 - show only published documents [glow=red,2,300][!!!][/glow]
              ----------------------------------------------------------
              http://www.linkedin.com/in/lucapost/
              http://www.twitter.com/lukwe/
              ----------------------------------------------------------
              • 18397
              • 3,250 Posts
              &filter=`published,1`
                • 33372
                • 1,611 Posts
                What works for me to show only unpublished docs is &showPublishedOnly=`0` &filter=`published,0` (seems like both are needed).
                  "Things are not what they appear to be; nor are they otherwise." - Buddha

                  "Well, gee, Buddha - that wasn't very helpful..." - ZAP

                  Useful MODx links: documentation | wiki | forum guidelines | bugs & requests | info you should include with your post | commercial support options
                  • 17673
                  • 194 Posts

                  Ok, got my ’past seminars’ page to list unpublished docs with &showPublishedOnly=`0` + &filter=`published,0`

                  Quite powerful when combined with auto publish/unpublish dates for the listed documents !!!
                    ----------------------------------------------------------
                    http://www.linkedin.com/in/lucapost/
                    http://www.twitter.com/lukwe/
                    ----------------------------------------------------------
                    • 30884
                    • 142 Posts
                    So can I assume that there is a need for Ditto 2.1 to be used in order to list both published and un-published articles?

                    Can anyone confirm this? I’ve modified Ditto 2.02 quite heavily for our site’s needs and I know what I have to change in order to get the 2.1 version doing the same (aka better).
                    It’s just going to take me quite some time to get this changed over so I’d like to just double check 1st wink
                      p i x e l p u s h e r e x t r o d i n a i r e
                      A x i s A n i m a t i o n . c o m
                      • 18397
                      • 3,250 Posts
                      Ditto 2.1 is needed to show both published and unpublished documents. If you want to modify Ditto 2.0.x to do the same, take a look at this diff:
                      http://mirror3.cvsdude.com/trac/ditto/codebase/changeset/1439#file1