Multi-person article-edit before publishing?

Author Message

André Bischof

Monday 04 April 2005 5:20:20 am

Hello alltogether,

I have to allow editors to work on the same article, before it gets published. If they both work with drafts they don't see the content added by the other author.

Thus they would have to publish the article, but then the article can be seen by the users before its ready.

Is there a possibility that two (or more) persons can work on the same article without publishing it?

I played with workflows, but that didn't help either.

Kind regards,
André

Personal weblog and more: http://bischof.homelinux.net

Paul Borgermans

Monday 04 April 2005 6:47:26 am

Hi,

This is how I would implement this, just by using template code:

- add a boolean (checkbox) field to the article class to mark it for "public" display, for exampel "is_ready".
- in the article display (full/line) views add a check on both the boolean field and the current user groups to see if an editor is logged in and act accordingly in a {section show=....}

{* init $current user if necessary with let current_user=fetch(user,current_user)
and 
suppose the group (object id) of the editors group is 13 *}
{section show=or($current_user.groups|contains(13),$node.data_map.is_ready.content)}
{* display the article *}
{section-else}
{* do not display the article, but maybe show some kind of a message *}
{/section}

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Xavier Dutoit

Monday 04 April 2005 6:56:29 am

Hi,

I've had a similar problem but with content spread over several nodes.

What I did was to create a new section "under construct". When the user publish the content (no save draft button), it goes to the underconstruct section. On the template for this section, I've added a button "publish" that call a custom module to change the section to the standard one.

Obvioulsy, with access rights, you can define we can read/edit content in the under construct section.

X+

http://www.sydesy.com

André Bischof

Monday 04 April 2005 8:12:02 am

Hello Paul, Xavier,

thanks first for your quick answers!

But I don't understand your solutions. As far as I understand Paul, he keeps articles from getting visible - that's nice, 'cause my editors could no save (not save draft) and the next editor can modify the article. But what about all published articles which still exist? Wouldn't they become invisible?

Xavier, if I understand you right, it is necassary to write an custom module - this is far beyond my possibilities.

I think I try Pauls solution, maybe I can solve it with a mysql update over all existing articles or modify the template language (which is new for me too) to look after the checkbox only if it exists.

I'll try that first thing tomorrow!

Thanks and kind regards,
André

Personal weblog and more: http://bischof.homelinux.net

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.