Hi all,
With drupal 6 (I can use 5.7 if easier), what is the best way to have two versions ("last published" and "next release draft") of the same content ?
It's content of my own type (build with cck, each content have many fields and several files attached). I would like to have all the published versions on the public website, and the draft of each content accessible for authentificated user. In brief, it's a bit like implementing for contents mechanisms usually used for sowftware development (with the "still in development" branch and the "stable" branch).
I guess I have to code a way to duplicate content from the "workspace" to public website (to always keep the current working version in the "workspace"), but I'm starting with drupal so it's perhaps a crzy idea...
Every good advice will be apreciated.
Thanks
Daniel
PS: Next steps are to have a collaborative way to publish (more than X% agree without veto), and have different variants of each content, with relations between variants ;-)
Daniel,
I would think that with the right permissions, this would be possible "out of the box"...
Assume a given node is created and published in Version A.
A content author could edit that node, then under "Publishing options" on the edit screen, turn off "Published" and turn ON "Create new revision," thus creating Version B.
If authenticated users are granted "edit <content type> content" for your given content type and were granted "view revisions" rights, then they would be able to browse revisions, both published and unpublished, to any given node of your custom type, and edit them. Thus, an authenticated user could do further revisions to Revision B and/or make that node "published."
The more elaborate system outlined in your PS is beyond my feeble powers, but I think the approach above will get you started. Let me know if you need more specific guidance - I'm just glancing over my setup to see how to go about it, but haven't actually tried it yet.
-Gabe
Daniel Caillibaud wrote:
Hi all,
With drupal 6 (I can use 5.7 if easier), what is the best way to have two versions ("last published" and "next release draft") of the same content ?
It's content of my own type (build with cck, each content have many fields and several files attached). I would like to have all the published versions on the public website, and the draft of each content accessible for authentificated user. In brief, it's a bit like implementing for contents mechanisms usually used for sowftware development (with the "still in development" branch and the "stable" branch).
I guess I have to code a way to duplicate content from the "workspace" to public website (to always keep the current working version in the "workspace"), but I'm starting with drupal so it's perhaps a crzy idea...
Every good advice will be apreciated.
Thanks
Daniel
PS: Next steps are to have a collaborative way to publish (more than X% agree without veto), and have different variants of each content, with relations between variants ;-)
Gabe Ormsby a écrit :
Daniel,
I would think that with the right permissions, this would be possible "out of the box"...
Assume a given node is created and published in Version A.
A content author could edit that node, then under "Publishing options" on the edit screen, turn off "Published" and turn ON "Create new revision," thus creating Version B.
But in this case the version A is unpublished. The content keep is node number, so you can't have both different contents.
I'll search further with the revision_moderation module (but I need to downgrade to 5.7).
Daniel
Take a look at the http://drupal.org/project/revision_moderation module if you haven't already. It leaves the current revision published while the new one goes into moderation. Dupal 5 only.
If you don't want to give the reviewers the permissions required by this module, another way is to forget about revisions and create new nodes for the drafts, perhaps controlling access with taxonomy.
On Tue, Apr 22, 2008 at 7:08 PM, Daniel Caillibaud ml.dcailli@free.fr wrote:
Hi all,
With drupal 6 (I can use 5.7 if easier), what is the best way to have two versions ("last published" and "next release draft") of the same content ?
It's content of my own type (build with cck, each content have many fields and several files attached). I would like to have all the published versions on the public website, and the draft of each content accessible for authentificated user. In brief, it's a bit like implementing for contents mechanisms usually used for sowftware development (with the "still in development" branch and the "stable" branch).
I guess I have to code a way to duplicate content from the "workspace" to public website (to always keep the current working version in the "workspace"), but I'm starting with drupal so it's perhaps a crzy idea...
Every good advice will be apreciated.
Thanks
Daniel
PS: Next steps are to have a collaborative way to publish (more than X% agree without veto), and have different variants of each content, with relations between variants ;-) -- [ Drupal support list | http://lists.drupal.org/ ]
Cog Rusty a écrit :
Take a look at the http://drupal.org/project/revision_moderation module if you haven't already. It leaves the current revision published while the new one goes into moderation. Dupal 5 only.
I don't understand yet how it really works, but it seems a good advice. Thanks.
Actually, I have a plublished version and a pending revision, with different bodies each, but it's the only difference, all others changes in others customs fields are made for both versions :-/
I'll go further on how it works, and inspect all the cck & workflow modules available for 5.x (big list !).
If you don't want to give the reviewers the permissions required by this module, another way is to forget about revisions and create new nodes for the drafts, perhaps controlling access with taxonomy.
I'll search in this way too. The pb is to control links between the 2 nodes (the "published" one and the "work in progress" one) so that publishing the second one overwrite the 1st one (and keep the 2nd as it is).
The modules I'll investigate are first Workflow, Workflow-ng, Workflow Fields, Custom review, Node approval, Node factory, Taxonomy Actions.
Daniel