ProcessWire 2.5.6 updates + drafts progress

Add page screen now with AJAX helper

The add page module (ProcessPageAdd) now alerts you as you are typing if the selected page name is already used by another page. Likewise, it gives you an "Ok" if there are no conflicts with your page name. Previously, it would modify the page name for you to make it unique automatically, but you wouldn't know about that until after submitting the form. Now you get alerted to the uniqueness of your new page's name as you are typing it.

Fixes with ProcessWire in fastcgi environments

We discovered a couple of issues with ProcessWire 2.5 running in a PHP fastcgi environment, at least when combined with certain versions of PHP 5.3. Worst case scenario was that PW would simply not run in that environment, as PHP's method_exists() would incorrectly generate a fatal error. This is apparently a known issue in some versions of PHP 5.3, but one that must not be often seen. This week we finally saw it in a way we could duplicate, and we found a workaround. It's easier for us to workaround it than it is to get your web host to change their PHP version in many cases, so that's what we did.

Another scenario we fixed this week (which may also be related to PHP 5.3 fastcgi environments) was that you'd receive a message about a module dependency not being met, on every page in the admin. In our test case, that module dependency was for LanguageTabs, but the issue actually didn't have anything to do with LanguageTabs. Instead, the issue was one in PW's core not descending to a deep enough level of dependencies. For whatever reason, we've only seen it need to descend to that level in the PHP 5.3/fastcgi environment, but can't be certain it's limited to that. Regardless, if you've seen messages about missing dependencies in the admin when you shouldn't, you may want to test out ProcessWire 2.5.6 dev.

Drafts for published pages, now in development

Jumping beyond the core, we've been working this week on draft capability for published pages, which will also include some nice workflow additions. Currently ProcessWire drafts are essentially unpublished pages. But there have been requests for keeping a separate draft version of already published pages. So that's what is being worked on here.

At the very basic level, when the drafts module is installed, your usual "Save" button on each page instead becomes separate "Publish" and "Save Draft" buttons (or just "Save Draft" if the user doesn't have page-publish permission). When you save a draft, the changes aren't visible on the front-end of the site, except to you when previewing it. The only significant limitation to mention here is that some fields can't be saved as drafts, specifically repeaters and PageTable, though we may be able to support PageTable later on. Otherwise, all Fieldtypes should work. In fact, all of the other core Fieldtypes and ProFields already work with it even in our early state of development.

Introducing drafts in this manner also is a good opportunity for us to introduce some nice workflow improvements, like isolating who can create drafts and who can approve and publish them. So that will be part of it. Likewise, a diff to compare published and draft versions is coming as well. I'll have more information in the coming weeks as we get further along with it.

Next week

Next week we'll be making some updates and enhancements to the image resize functions thanks to more great contributions from Horst. He's got some really incredible stuff somewhat related to this in development too!


  • Nikolaus


    • 9 years ago
    • 20

    This sounds great! Are there any updates on the page draft feature yet? This would be the one missing thing for me right now ;)

    Wouldn't draft development also make versioning possible? Meaning that the old versions of a page will be saved to other page IDs but can still be shown or republished from within the page editor?

  • ryan


    • 8 years ago
    • 10

    Good timing, the initial beta release of ProDrafts should be tomorrow!

  • Moose1


    • 8 years ago
    • 00

    I would also love to know if there's been any updates on the draft feature as of late. We'd love to get this feature out to our users.

    • Moose1


      • 8 years ago
      • 10

      Wow!! Very timely! Thanks very much, Ryan. We will certainly be checking this out!


    Latest news

    • ProcessWire Weekly #524
      In the 524th issue of ProcessWire Weekly we'll check out what's new in the core this week, introduce a new module called SEO Text Width, and more. Read on! / 25 May 2024
    • ProFields Table Field with Actions support
      This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
      Blog / 12 April 2024
    • Subscribe to weekly ProcessWire news

    “…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull