Drafts & Workflows

More often than not, managing a Dynamicweb solution involves more than one person.

This means that more than one person probably has an opinion or a say in content creation and management.

To facilitate working with content in teams, Dynamicweb ships with a number of helpful tools, such as:

  • The Drafts tool
  • The Workflows tool – including the version control workflow

Here’s what they do, and how to use them!

manual

In this section, you will learn about:

  • The drafts tool and how to use it
  • How to create and use workflows
  • How to user version control on your pages and paragraphs

The Drafts tool lets you track changes to pages, then compare them, before either approving or discarding the changes.

To use the drafts tool:

  • Go to the page view in your Dynamicweb backend
  • Click the use draft button in the ribbon bar (Figure 3.1)
  • Start editing the page content, i.e. adding or editing paragraphs
Figure 3.1 The 'Use draft' button

Once the draft tool is in use, you can which paragraphs have been changed on their icons (Figure 3.2):

Figure 3.2 Draft changes are shown in the icons
  • The first icon means that the contents of the paragraph have been changed in some way
  • The second icon means that this is a new paragraph, which has not yet been approved
  • The third icon means that this paragraph has been marked for deletion if the changes are approved

Once content has been created or edited and then saved, you have access to the rest of the draft-related buttons. You can:

  • Click Show draft to view the draft in frontend
  • Click Compare to view a side-by-side comparison of the existing and draft versions of the page (Figure 3.3)
  • Click Approve to approve (and publish) the changes
  • Click Discard changes to, well, discard the changes
Figure 3.3 Comparing a draft with the original

The Workflows tool enables you to create and assign roles to individual users, and to create rules in order to control workflows and procedures. This enables you to control "who does what" on your website, facilitating consistency and uniformity across the entire website.

Workflows are created and managed from the workflows overview (Figure 4.1) - Management Center > Editing > Workflow.

Once created, a workflow can then be applied at a website or page level.

Figure 4.1 The workflows node allows you to create and manage worklows

To create a workflow, click New workflow in to toolbar to open the new workflow dialogue (Figure 5.1).

Figure 5.1 Creating a workflow

Name the workflow, and select and/or customize the templates used to general approval required and notification emails.

Save and close the workflow to go to the participants-view, from which you add and assign users and roles to the workflow.

From the participants view (Figure 6.1), you can create and manage the steps in the workflow – each participant representing a step.

The workflow starts with the topmost participant on the list, either notifying or pausing for approval (or both), before moving on the next participant on the list.

Figure 6.1 Workflow participants - i.e. steps

To add a step/participant to a workflow, click New participant in the toolbar to open the create participant view (Figure 6.2).

Figure 6.2 Adding a participant to a workflow

From the create participant view, you must:

  • Select a particular user or user group (such as ‘editors’ or ‘proofreaders’)
  • Select a role for the user or user group – Administrator, Approver, Hearing party or Proofreader. The roles have no function beyond categorization.
  • Specify whether this participant need to approve the changes – if so, check the required checkbox – or need merely be notified of changes.
  • Save the participant 

Workflows can be applied to both entire websites and to specific pages.

To apply a workflow to a website:

  • Go to Modules > Websites and click the website to access the website settings
  • Select your workflow from the website-tab in the toolbar (Figure 7.1)
  • Save or Save and Close the website settings
Figure 7.1 Applying a workflow to a website

To apply a workflow to a page:

  • Right click the page in the content tree and go to the page properties
  • On the advanced tab (Figure 7.2), select your workflow in the workflow dropdown
  • Save or Save and Close the page properties
Figure 7.2 Applying a workflow to a page

When a page has a workflow associated with it – whether inherited from the website settings or set on the page only – changes to the content is not published immediately.

Rather, changed paragraphs are marked with icons as in Figure 8.1.

You can review the proposed changes by clicking show draft or compare in the toolbar, to see either the draft alone or the draft and original side-by-side.

Figure 8.1 Using a workflow

Once you’re ready, you can start the workflow by clicking the Start workflow button in the toolbar.

This will notify the first person (or group) on the list of participants (if set to notify) and/or pause the workflow pending approval, depending on your setup.

A participant in the workflow who logs in (having been notified or not) will then be able to click the workflow button (Figure 8.2) in the administration toolbar.

Figure 8.2 The workflow button for participants

This will open a workflow window (Figure 8.3) with a list of pages with changes pending approval, and from which you can:

  • Use the buttons on the left side of the screen to view the old and new versions
  • Approve the changes which are deemed acceptable.

With administration access, you can:

  • See the step the workflow is on, and whose approval is pending
  • Force the workflow to proceed to the next step
  • Override the entire workflow and instant publish a page
Figure 8.3 The workflow window

Dynamicweb ships with a particular kind of workflow which allows you to work with version control on both a page and paragraph level.

With version control, you can:

  • View and compare earlier versions of a page with the current one
  • View, compare and restore paragraphs to an earlier version than the current one

To enable version control, go to the website or page properties and select the Save versions workflow (Figure 9.1).

This enables version control on your page or website.

Figure 9.1 Enabling version control

Once enabled, you can explore earlier versions of a page by going to the paragraph list of a page and using the Previous versions and Versions buttons ({fgureref}).

Figure 10.1 Version control on pages

The Previous versions button opens a date selector – simply select a time and date to view the version from that point in time (if it exists).

The Versions button opens a list of archived versions (Figure 10.2). From this list, you can:

  • View the total number of archived versions (here 3, max is 200)
  • See when the page was last modified and published
  • View an archived version, and compare it to the current version
Figure 10.2 Viewing an archived page version

To work with version control for paragraphs, go to the paragraph edit view and switch to the Advanced tab (Figure 11.1).

Figure 11.1 Version control for paragraphs

Click the Versions button to open a list of archived versions (Figure 11.2).

Figure 11.2 Version control for paragraphs

From the versions list, you can:

  • View the total number of archived versions (here 3, max is 200)
  • See when the paragraph was last modified and published
  • Compare the current paragraph to an older version
  • Restore the paragraph to an older version
implementing

There is no implementer-specific information available for this subject yet.

development

There is no developer-specific information available for this subject yet.

database

There is no database specific information available for this subject.

integration

There is no integrator-specific information available for this subject yet.