A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.umbraco.com/umbraco-workflow/workflow-section/workflow-settings below:

Workflow Settings | Umbraco Workflow

Workflow Settings | Umbraco Workflow
  1. Workflow Section
Workflow Settings

When working with Umbraco Workflow, you can handle the workflow settings directly in the Backoffice from the Workflow section. You can configure the following from the Workflow Settings section:

Workflow settings

You can configure the General Settings from the Settings menu in the Workflow section. The following settings are available:

General settings

All new nodes use this workflow for initial publishing. You can add, edit, or remove an approval group to/from the workflow.

To add an approval group to the workflow:

  1. Go to the Workflow section.

  2. Go to the General tab in the Settings menu.

  3. Click Choose in the New node approval flow section.

    New Node Approval Flow
  4. Select an approval group to add to the workflow.

    Add Workflow Approval Groups

When you click on the approval group, you are presented with different configuration options for that group. For more information on the approval group settings, see the Settings section in the Approval Groups article.

To remove an approval group, click Remove.

Document type approval flows

Configure default workflows that should be applied to all content nodes of the selected Document Type. This feature requires a license.

To add a Document type approval flow:

  1. Go to the Workflow section.

  2. Go to the General tab in the Settings menu.

  3. Click Add document type in the Document type approval flows section.

    Document Type Approval Flows
  4. Select a Document Type from the drop-down list.

  5. Select a Language from the drop-down list.

  6. Click Choose in the Approval groups.

  7. Click Add condition to add a condition to the workflow process.

    Configure Document Type Approval Flow Settings

To edit a Document type approval flow:

  1. Go to the Workflow section.

  2. Go to the General tab in the Settings menu.

  3. Click the content node in the Document type approval flows section.

    Edit Document Type Approval Flow
  4. Add, Edit, or Remove approval groups from the current workflow.

  5. Click Add condition to add or edit a condition to the workflow process.

    Configure Document Type Approval Flow

Nodes and their descendants selected here are excluded from the workflow process and will be published as per the configured Umbraco user permissions. This feature requires a license.

To exclude a node from the workflow process:

  1. Go to the Workflow section.

  2. Go to the General tab in the Settings menu.

  3. Click Choose in the Exclude nodes section.

    Exclude Nodes
  4. Select the Content node from the Content tree.

    Select Content Node

Umbraco Workflow uses Notifications to allow you to configure email notifications for all workflow activities for the backoffice.

From the Settings view in the Workflow section, the Notifications tab provides access to the following:

Notification emails use HTML templates which render information from the HtmlEmailModel type which lives in the Umbraco.Workflow.Core.Models.Email namespace. While it is possible to modify the email templates from the backoffice, we recommend making changes via an Integrated Development Environment (IDE) of your choice.

The HtmlEmailModel contains the following fields:

An enum value containing either 1 or 2 for Publish and Unpublish respectively.

If a scheduled date exists for the workflow, it is found here.

A pre-generated representation of the current workflow state.

The view model data for the current workflow task. Contains a lot of useful data, best explored via Intellisense.

WorkflowInstanceViewModel

The view model data for the current workflow. Best explored via Intellisense.

The HtmlEmailBase contains the following fields:

The public URL of your site.

The name of the node from the current workflow.

The workflow type including the scheduled date (if exists).

An enum value representing the current email type that relates directly to the workflow task type.

The model defining the receiver of the email.

The user's email address or a group address (if a group email is being sent).

The user's ID or group ID (when sending to a group email address).

Is the email being sent to a generic group email address?

Umbraco Workflow provides Settings for determining who receives emails at which stages of a workflow. While these are set to default values during installation, it is recommended to update your Notifications Settings to better suit your installation needs. Emails can be sent to:

Duplicate users are removed from email notifications.

By default, all emails are sent to the Group. This might not always be an ideal situation. For example: cancelled workflows would be best sent to the Author only, likewise with rejected.

It might be useful to notify All the participants of completed workflows but even this may be excessive. Depending on your website, you can adjust the best configuration.

Umbraco Workflow uses a reminder email system to prompt editors to complete the pending workflows. Reminders are sent using Umbraco's internal task scheduler, every 24 hours after an initial delay. For example, setting the Reminder delay (days) value to 2 in the Workflow Settings section will allow pending workflows to sit for 2 days. After that reminder emails will be sent every 24 hours to all members of the group assigned to the pending workflow task.

The emails use a similar model to the notification emails, also inheriting from HtmlEmailBase. In addition to the inherited fields, HtmlReminderEmailModel includes:

A list containing all the overdue tasks assigned to the current user.

The count of overdue tasks assigned to the current user.

All email templates are fully localized where translations exist. You can edit the email templates in the Backoffice or in your IDE. By default, Umbraco Workflow's email templates are available in the default language.

Creating an Email Template

If you wish to have one or more email templates for different languages, you will need to place all the email templates into the ~/Views/Partials/workflow/email/ folder.

To add templates for other languages:

  1. Go to the ~/Views/Partials/workflow/email folder.

  2. Copy the required template and paste it into the same folder.

  3. Append the culture code to the file name prefixed with an underscore.

For example:

Below is an example of the ApprovalRequest.cshtml email template from the ~/Views/Partials/workflow/email/ folder:

@model Umbraco.Workflow.Core.Models.Email.HtmlEmailModel

@*
    Refer to the documentation for Email templates for a full rundown on the available fields
    or (better option), edit the template in Visual Studio where Intellisense will save you
*@

<!DOCTYPE html>

<html>
<head>
    <!-- will be used as the email subject line -->
    <title>Workflow: Approval request</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<body>
    <div>
        <h1>Hello @Model.To.Name,</h1>
        <p>Please review the following page for @Model.Type.ToLower() approval:</p>
        <ul>
            <li>
                <a href="@(Model.CurrentTask?.BackofficeUrl)">@(Model.CurrentTask?.Node?.Name)</a>
            </li>
        </ul>
    </div>
</body>
</html>

Last updated 4 months ago


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4