Gestione delle revisioni in Drupal

From RVM Wiki
Revision as of 10:59, 3 March 2011 by Gabriele.vivinetto (talk | contribs) (Compatibilità con Panels)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

VERIFICARE

Attivare le notifiche via mail

  • Nel content type, forzare la creazione di una revisione ad ogni modifica, flaggando
Workflow settings /  Create new revision
  • Abilitare il modulo
Trigger
  • Creare un'azione che invia mail ad un indirizzo in
Site Configuraton / Actions
  • Creare un trigger che usa l'azione precedente ad ogni creazione ed ad ogni modifica del contenuto e della taxonomy in
Site Building / Triggers

Installare i componenti per l'approvazione delle Revisioni

Module Grants
Module Grants Monitor
Node Tools
User Tools

Under

Administer >> Content >> Content types

click "edit" next to the content types for which you wish to enable/disable revisioning.

Under

Workflow Settings, Default Options

tick both the

Create new revision
New revision in draft, pending moderation

Also in this section UNtick

Published

so that all new content is created in an unpubished state, i.e. invisible to the public.

Select in New revision in draft, Create new revision

Every time book content is updated, even when saving content in draft/pending moderation

Give authors permissions

view revisions
edit revisions
module_grants_monitor module
 access All tab

Give moderators

view revisions
edit revisions
publish/revert revisions
module_grants_monitor module
 access All tab
 access I Can Edit tab   
 access I Can View tab   
 access I Created tab   
 access I Last Modified tab   
 access Published tab   
 access Unpublished tab


Compatibilità con Panels

ATTENZIONE: IL MODULO REVISIONING NON È COMPATIBILE CON PANELS

Per renderlo ustilizzabile occorre settare quest variabile con drush

sudo -u nobody ~/local/bin/drush vset page_manager_override_anyway 1

Utilizzo

Log in as one of the authors and Create content. Save. Log out

Log in as a moderator to publish the content via the

Accessile content >> Pending tab

Click on the title of the post, then open the desired revision by clicking on the date.

Check the content, the press

Publish this

Log in as an author again and revise the content. You will notice that upon saving the new revision, the one visible to the public remains unchanged.

Log in as a moderator again to promote (publish), the revised content to live.

As an alternative to the Accessible content menu item, you may want to activate the

Pending revisions block

This block is particularly useful for moderators as it constantly shows the latest content requiring moderator attention in an inobtrusive corner of the screen.

Configure and enable the block like any other on the

Administer >> Site building >> Blocks page.

In addition you may want to install the Workflow module to further segragate the author and moderator roles via access control based on states such as "in draft", "in review" and "live". Workflow also allows you to notify users when state transitions occur (e.g. when a moderator declines or publishes a submitted revision).

Riferimenti