Permalink
Fetching contributors…
Cannot retrieve contributors at this time
127 lines (117 sloc) 3.52 KB
title review labels toc confluence tree_item_index history previous_link
Implement the News "Publishing" Process
comment date status
2016-12-19
ok
lts2016-ok
tuto-automation
tuto-permission
tuto-user-action
content-review-lts2017
true
ajs-parent-page-id ajs-parent-page-title ajs-space-key ajs-space-name canonical canonical_source page_id shortlink shortlink_source source_link
4689520
How to Publish a News Feature in Workspaces
NXDOC
Nuxeo Platform Developer Documentation
viewpage.action?pageId=5570674
viewpage.action?pageId=5570674
5570674
cgBV
/pages/viewpage.action?pageId=5570674
300
author date message version
Manon Lumeau
2015-11-17 14:22
12
author date message version
Manon Lumeau
2015-11-16 17:30
11
author date message version
Manon Lumeau
2015-11-16 17:28
10
author date message version
Manon Lumeau
2015-11-16 17:23
9
author date message version
Manon Lumeau
2015-11-16 17:21
8
author date message version
Alain Escaffre
2014-05-06 00:55
7
author date message version
Solen Guitter
2011-01-28 16:32
6
author date message version
Solen Guitter
2011-01-28 16:32
5
author date message version
Solen Guitter
2011-01-28 11:54
4
author date message version
Solen Guitter
2011-01-28 11:50
3
author date message version
Alain Escaffre
2011-01-27 00:30
2
author date message version
Alain Escaffre
2011-01-27 00:27
1
/nxdoc/add-a-news-content-view-on-workspaces

In this section, we will:

  • Create the NewsManagement permission that will be given to user we want to be able to publish news
  • Create a "Publish news" button that will be available in the folder to enable bulk publishing

{{#> callout type='info' }}

For this section, it is recommended to take a look at the[ Use Content Automation]({{page page='how-to-create-an-automation-chain'}}) guide for a step-by-step approach.

{{/callout}}

Create the NewsManagement Permission

  1. In the Roles and Permissions menu item, right-click on Permission and click New Permission.
  2. Give the new permission the ID NewsManagement.
  3. In the drop down list, select "Workspace" and click the Add button. ![]({{file name='NewsManagement_permissions.png'}} ?w=600,border=true) The new permission will now be available in the list of permissions on Workspace.

Create the "Publish News" Button

  1. Create a new User Action called "PublishNewsButton". Its properties are:
    • Current user has permission: NewsManagement
    • Current document has type: Folder
  2. Create the operation chain PublishNewsChain:
    - Seam.GetSelectedDocuments
    - Document.Filter:
        class: Any
        lifecycle: project
    - Document.FollowLifecycleTransition:
        value: approve
    - Document.Update:
        properties:
          dc:valid: '@{CurrentDate.format("yyyy-MM-dd''T''HH:mm:ss.SSSZ")}'
        save: 'true'