Postponed (maintainer needs more info)
Project:
Workflow-ng
Version:
5.x-1.0-beta2
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2007 at 12:10 UTC
Updated:
26 Mar 2008 at 19:18 UTC
Comments
Comment #1
amitaibuYou mean, that two users will edit the same node at the same time?
If so, I think that a possible way is:
* Add a CCK field to your content, for example "Being Edited" that can be enabled or disabled.
* If 1st user edits the node, the action - set the field to enabled.
* If 1st user submitted the node, the action - set the field to disabled.
* If 2nd user tries to edit a node with "Being Edited"=Enabled - he's redirected to another page with an explanation message.
Cheers,
Amitai
Comment #2
amogiz commentedThanx for your answer. In fact, my problem is different : with Taxonomy Access access i let 2 users (user1 & user2) to edit a certain node. There can be only one author by a node. So if user1 or 2 unpublish the node only the author node willl be able to publish it again. So for exemple, user1 is the author ; one day he unpublisges the node. Another day User2 (that is authorised by TAC) wants tu republish the node or only edit it to modify the content : it is not possible. I think it happens oftem that 2 users have to edit a content. Scuse for my bad english …
Comment #3
MediaMunkey commentedHi, I believe this comes down to a fundamental problem with drupal that I myself and i'm sure others are trying to overcome.
If the node is unpublished no access modules of any kind that I know of will allow anyone to view that node unless the user has the 'administer nodes' access assigned to them.
By the sounds of things these 2 users you talk about do not have that access right and therefore can not view an unpublished node. I believe it is still possible for them to edit the node if they know the direct link to the edit page of the particular node but this isn't very helpful when they can't see the node in the first place.
So as far as I know, Workflow-ng can't help you here. Then again I haven't actually used Workflow-ng yet.
Comment #4
amitaibuI think once the CCK states will be implemented, it will be easier for you to create a workflow, since Unpublishing can/ will be done through a CCK state rather then the node's Publish.
Comment #5
fagoyep, that would help! Plus what would be needed would be an action to change node access - then one can define new states per CCK and configure access control for them with the help of the action and workflow-ng.
Comment #6
acrollet commentedI've had luck with having workflow-ng set the content author to solve a problem where I wanted to let more than one person edit a node...