Revise icon indicating copy to clipboard operation
Revise copied to clipboard

integrate into Resource update controllers

Open opengeek opened this issue 12 years ago • 6 comments

Provide draft and history access from Resource update controllers, along with appropriate permissions.

  • Add a Save Draft control (with optional change message input)
  • Add a Drafts tab listing the Drafts currently saved/accessible by the current user
  • Add a History tab listing the History for the Resource

opengeek avatar Jul 26 '13 16:07 opengeek

A couple of quick discussion points:

  • What is the purpose of the drafts tab? Is there a a different between drafts and resource history? Are we essentially thinking about a list of each resource "save", with some at a published status and others not, i.e. a draft?
  • Where you mention a Save Draft control, are we thinking if this as a different user action within the UI? I would suggest that this functionality should replace the existing Save function, the add a new action to Publish / Set Live.

There's a slight overlap in terminology between how MODX currently defines "Published", which is closer to saying enabled or disabled and the Publishing of a revision. What's the thought process on resolving this one?

StevenMorgan avatar Jul 27 '13 10:07 StevenMorgan

Also, is this the right place to discuss how Revise could / should impact the Preview button?

Steve

StevenMorgan avatar Jul 27 '13 10:07 StevenMorgan

Yes, this includes any changes needed to enable Revise in the existing Resource Create and/or Update controllers.

Drafts and History are stored separately and with slightly different rules. I chose this approach because History and Drafts could have completely different behavior, lifetimes, etc.

opengeek avatar Jul 30 '13 18:07 opengeek

Sounds good.

Do you envisage a situation where there could be multiple drafts? This sounds great but I just wonder if there is any benefit in simplifying to start with?

Looking forward to test driving this - I think it'll be met with a good reception from the community.

StevenMorgan avatar Jul 30 '13 18:07 StevenMorgan

Since drafts can be saved with a message, there can be "named" Drafts, but there is a mode already to address this . The revise/resource/draft/create processor accepts a singleDraft argument that defaults to true at the moment.

opengeek avatar Jul 30 '13 22:07 opengeek

#7 added Save Draft and Preview Draft controls to the Resource Create and Update controllers. Only supports singleDraft mode at the moment.

opengeek avatar Nov 22 '13 21:11 opengeek