Publishing Workflow/Scenarios/fr
From Joomla! Documentation
Implémentation des flux de travail
L'ordre général des tâches pour créer un nouveau flux de travail est :
- Planifier
- Ajouter un nouveau Groupes d'utilisateurs (facultatif)
- Ajouter de nouveaux Utilisateurs et les assigner aux groupes d'utilisateurs appropriés (facultatif)
- Créer le the nouveau "flux de travail"
- Créez l'(es) état(s) pour ce flux de travail avec la(les) condition(s).
- Créer la(les) Transition(s) du flux de travail
- Ajoutez ou modifiez la Catégorie applicable pour ajouter le Flux de travail.
- Modifier les Permissions' de la Catégorie de sorte que les nouveauxGroupes d'utilisateurs aient les permissions de faire seulement ce qu'ils sont en droit de faire
- Paramétrer les notifications si nécessaire
- Configurer l'accès de connexion pour les Utilisateurs sur le frontend (ou le backend : non inclus dans ce tutoriel) (facultatif)
Planification
Planifiez ce que votre flux de travail fera. La planification est toujours la partie la plus importante. Répondez à ces questions pour vous aider à planifier :
- Combien de groupes d'utilisateurs (même s'il n'y a qu'un seul utilisateur dans le groupe) doivent intervenir?
- Combien d'actions y aura-t-il dans le flux de travail?
- L'un ou l'autre des groupes aura-t-il besoin de recevoir des notifications pour prendre les mesures qui s'imposent ?
- Les groupes effectueront-ils leurs actions à partir du frontend ou du backend ou de la combinaison des deux ?
- Quelles "Catégories" se verront attribuer un/ce flux de travail ?
- Les différentes catégories auront-elles des flux de travail différents ?
Scénario #1
- Un groupe d'utilisateurs ajoute des messages de blog mais ne peut pas les publier
- Le deuxième groupe d'utilisateurs approuve les messages du blog et les publie.
Créer de nouveaux groupes d'utilisateurs
- Allez dans Utilisateurs → Groupes → Nouveau
- Saisissez le Titre du groupe':Affiches du Blog.
- Sélectionnez le Group Parent : Enregistré
- Cliquez sur Enregistrer & Nouveau.
- Enter the Group Title: Blog Approvers
- Select the Group Parent: Registered
- Cliquez sur Enregistrer & fermer.
Créer de nouveaux utilisateurs (ou modifier des utilisateurs existants)
Using the directions on create your new Users.
- Create User(s) and assign them to the Blog Posters User Group.
- Create User(s) and assign them to the Blog Approvers User Group.
NOTE: If you want your Users to receive notifications for a Transition (see more below) then select Yes for Receives System Emails for each User to receive notifications.
Créer le flux de travail
- Go to Content → Workflows → New
- Enter the Title: Blog Workflow
- Cliquez sur Enregistrer & fermer.
NOTE: Only mark this Default if it will be the Default Workflow for ALL NEW Articles created in Categories without an assigned Workflow. Existing Articles will not be changed.
Créer le(s) statut(s) du flux de travail
- From the Workflows list view, click the “manage” link in the States column next to the Blog Workflow. You will see the default State of Published.
- Click the Default State for Published and change the Title to: Publish new blog post.
- The Condition of items in this state: Published will remain unchanged.
- Cliquez sur Enregistrer & nouveau.
- Enter the Title: New blog post, unpublished.
- Change the Condition of items in this State to Unpublished.
- Change the Default to Yes (Green) since this is the Default State for Articles in this Workflow.
- Cliquez sur Enregistrer & fermer.
Créer la transition pour le flux de travail
There are two ways to access Transitions:
- Click Transitions from the sidebar while in the States list view.
- Click the blue line with arrows in both directions from the Workflow list view.
- Go to Transitions.
- Cliquez sur Nouveau
- Add the Title: Approve/Publish
- Select the State New blog post – unpublished in the From state field drop-down.
- Select the State Publish new blog post in the To state field drop-down.
- Click Save and remain in this Transition.
- Click the Permissions tab of the Transition.
- Select the User Group Blog Approvers.
- For the Action Execute transition, select Allowed from the Select New Setting drop-down.
- Cliquez sur Enregistrer & fermer.
NOTE: You can quickly access your States and Transitions from the Workflow list view. The orange circle is the States and has the quantity of States listed next to the Workflow Title. The blue line with arrows in both directions is for Transitions and shows the quantity of Transitions for the Workflow.
Assign Workflow & User Group Permissions to the Category
- Allez dans Contenu → Catégories
- Access the Blog Category (or create it if necessary) and click the Workflow tab.
- Click the drop-down and select Blog Workflow.
- Cliquez sur l'onglet Droits.
- Click on the Blog Poster User Group.
- For the Action Create and Edit, change the Select New Setting drop-down to Allowed.
- Click on the Blog Approvers User Group.
- For the Action Delete, Edit, Edit State and Edit Own, change the Select New Setting drop-down to Allowed.
- Cliquez sur Enregistrer & fermer.
For more information on ACL and assigning permissions to User Groups, see the ACL Tutorial.
Paramétrer les notifications
Notifications use the Joomla core Messaging component. It is very basic. When enabled for Workflows, it will send a message to the User associated with the Group assigned to the Transition. The message simply states that they have a message in the site. It will then be their responsibility to login and check the articles that need approval and publish them.
To set up notifications for the Workgroup Transitions:
- Allez dans Extensions → Plug-ins
- Click the Table Options button and Select Type of content
- Click on Content – Joomla and then toggle Yes for Email on transition execution
- Then make sure that the Users themselves have Receive System Emails toggled to Yes in Users → Manage.
To set it up so that Users can Post and Approve from the frontend
- Create a Menu Item for the Menu Item Type Login so that your Blog Posters can login.
Menus → Choose or create a menu → New → Users → Login
OR - Create a module for Login so that your Blog Posters can login.
Extensions → Modules → New → Login - Add a Menu Item to a Menu that displays only for the Registered User Group to Add an article
Menu Item Type Articles → Create Article
NOTE: this will display for all Registered Users unless you create an Access Level for your Blog Poster User Group and select this in the Menu Item under Access. - When your User logs in, they add an Article, enter the content and Save.
- This will trigger a notification to the Blog Approvers Users that there is a new private message on the site. It doesn’t get more specific than that. Approvers should just come to the site and approve the Article. It will also send a message to Super Admins.
- When the Blog Approver logs in, they can navigate to where the new article will appear. They will be able to see the unpublished article and edit it/approve it/publish it. Then they can Save & Close and logout.
Admin note: Super Admins can use Batch to move existing Articles to a different workflow than it is currently assigned. It won’t make a difference if the Articles are already published.
Scénario #2
Ajoutez ici un autre scénario pour aider les autres à voir la puissance des flux de travail. Les documents peuvent être modifiés ou ajoutés par quiconque possèdant un compte.
Related Information
See also: