Skip to content

collective/dexterity.localrolesfield

Repository files navigation

Introduction

This package permits to give a local role on a content following a content field value and the workflow state. It uses borg.localrole.

A new configuration page is added as a new tab on each dexterity type configuration.

You can there define for each local role field and each state which local roles will be automatically given to the selected principal in the field.

You will find in each configuration line an additional field names suffix. If completed, the suffix name will be added at the end of the local role field value to define a principal name.

By example: if the configuration suffix is "director" and the local role field value is "group1", the local role will be given to "group1_director".

This last functionality is used with the package collective.contact.plonegroup.

Technically, this package extends dexterity.localroles:

  • provides a principal selector field
  • extends the configuration page

This is a refactoring of collective.z3cform.rolefield.

Installation

  • Add dexterity.localrolesfield to your eggs.
  • Re-run buildout.
  • Done.

Versions

  • Version 2.x is Plone 4 and Plone6 compliant
  • Version 1.x is Plone 4 only

Credits

Have an idea? Found a bug? Let us know by opening a ticket.

Tests

This package is tested using Travis CI. The current status of the add-on is :

image

image

About

Extend dexterity.localroles with specific field and configuration

Resources

Stars

Watchers

Forks

Packages

No packages published