Posted by Joe Oldak on

Hi all,

I've made a change that on the face of it maybe seems like a backward step but in fact fixes a few things.

The gist of the change is that:

  • CMS pages no longer have the option to Save and Publish a live page without creating a new Revision.
  • The Filtered Item List, Child List, and Latest News includelets now use the page's creation date for ordering, rather than the last published date.

So why the change?

Save and Publish as an action on a live page was added so that content could be updated without updating the Published date of a page, and so potentially changing the order of pages in a Filtered Item List. (e.g., if you used Filtered Item list to show a list of blog posts with newest first, you don't want a minor correction on an old page to make it jump to the top of the list).

However, this actually caused a few problems:

  1. If you accidentally clicked Save as New Revision and Publish the page would jump to the top of the list anyway, and you can't undo it.
  2. If you don't create a new revision you can't roll back to an earlier revision - which you might not realise until too late!
  3. Using Save and Publish didn't update the 'lastmod' date used by search engines to determine if a page has been updated.
  4. And using Save and Publish didn't update the date at which the site was last updated, meaning Voice might think you hadn't updated your site in a long time, and disable the site thinking it had become inactive.

So now, if you're editing the live revision of a page, you must create a new revision in order to save the changes.

So how do you get around the Filtered Item List problem?

The Filtered Item List, Child List, and Latest News includelets previously used the last published date of a page in the Oldest/Newest listing modes.

Now they will use the date at which the page was created, not the date it was published. So if you tweak a page after it's been published it'll no longer jump to the top of the list.

I've also added a Recently Updated First sorting option to these includelets, so that if you really do want any edit to make your page jump to the top of the list you can!

Thanks!

Joe