projects / org / se7enxweb / oweditorial
Find the Exponential Software extensions you want
UNIX name | Owner | Status |
---|---|---|
OWEditorial | 7x | stable |
Version | Compatible with |
---|---|
N/A | N/A |
oweditorial provides an editorial workflow for eZPublish, based on object states.
1) Put content on extension in extension/oweditorial folder :
git clone https://github.com/Open-Wide/OWEditorial.git ./oweditorial
or
git submodule add https://github.com/Open-Wide/OWEditorial.git extension/oweditorial
2) Activate extension :
Add the following to your settings/override/site.ini.append.php file:
[ExtensionSettings]
ActiveExtensions[]=oweditorial
3) Regenerate autoloads
4) Clear cache
1) Create an object state group via "Setup > States > Create new"
example : myworkflow
2) Add a state named none in this group.
3) Add your custom states in this group.
example : pending, validated, refused, published, archived
1) Create a file settings/override/oweditorial.ini.append.php to add your own settings.
2) You must enable your workflow in this file :
[Workflows]
Workflows[]
Workflows[]=myworkflow
3) Set a default state for the new objects (in this example, the state "pending" will be setted on each new published object) :
[myworkflow]
FirstState=pending
4) To define which action is required to set a new state, set your actions like this :
[myworkflow]
FirstState=pending
#[]=
pending[validated]=Validate
pending[refused]=Refuse
refused[pending]=Submit
validated[published]=Publish
published[archived]=Archive
See extension/oweditorial/oweditorial.ini for more customization
Set user rights with object states constraints. For example, anonymous users can only read objects with "published" states.
Validators users can only set "validated" or "refused" state on objects with "pending" state.
The editorial dashboard ("Editorial" tab) shows all editorial content sorted by state.
You can select displayed classes, and ignored states, in ini file :
[dashboard_myworkflow]
IgnoreState[]
IgnoreState[]=none
Classes[]
Classes[]=article
This settings will only display articles in editorial dashboard. All objects with "none" state will not be displayed. You can enable all classes with an empty Classes array.
Example of configuration for notification
You can distinguish the notifications for each class identifier
If class identifier is empty, notification is sent at all class.
Notifications[]=;;;
Notifications[]=attribute;;
Notifications[]=group;;
Notifications[]=user;;
Notifications[]=owner;owner;
[notifications_published]
Alert=Your message
Notifications[]
Notifications[]=attribute;email;article;notifications/mails/yourtemplate.tpl
[notifications_pending]
Alert=Your message
Notifications[]
Notifications[]=group;12;article;notifications/mails/yourtemplate-article.tpl
Notifications[]=group;22;actu;notifications/mails/yourtemplate-actu.tpl
[notifications_refused]
Alert=Your message
Notifications[]
Notifications[]=user;1000;article;notifications/mails/yourtemplate.tpl
[notifications_validated]
Alert=Your message
Notifications[]
Notifications[]=owner;;article;notifications/mails/yourtemplate.tpl
States and actions buttons will be displayed in full view of objects.
You can directly switch to a state with "My Workflow" tab in full view.
The "Editorial" tab in admin interface will display all your editorial content, sorted by state. You can customize this view in oweditorial.ini file, in "Dashboard" section.
Try to regenerate autoloads
Have you correctly setted your workflows and triggers ? Try to set manually an object state and clear view cache.