Jump to content

Page Draft Creator


Rob
 Share

Recommended Posts

I have just published my new module Page Draft Creator to the modules section of the site:

http://modules.processwire.com/modules/process-page-draft/

The basic principle is that you can, with a single click, create draft copies of pages that are hidden (from search, API searches/listing etc) and have a unique, almost-impossible-to-guess URL and can therefore be sent to clients so they can sign-off on changes before you make them to the live, published page.

It does this by cloning the page and adding an MD5 hash to the URL.  The draft page is technically live and publically available, but in reality only those who you share the gibberish URL with will ever see it.

It's a small, simple bit of code but hopefully it goes some way towards the draft->preview->publish workflow that is often required by site builders, editors etc.

Consider it beta although it is, I believe, incapable of doing any harm.  It could do with testing on various versions of ProcessWire so if anyone has feedback it is welcome.  In the future the intention is to be able to "publish" these draft pages by copying the content back over the live page, but at present there are issues with repeaters that mean that it is a work-in-progress.

Enjoy!

  • Like 9
Link to comment
Share on other sites

  • 1 year later...

Thanks for making this! I was just trying it out in 2.4 and the draft creation works fine but the ability to "publish" and remove the draft appears non-existent. Something to look at if you want to bring this module up to the current release, which I sure hope to see. :)

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...