Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Portal configuration for upload feature

The upload feature can now be handled by the security. To use this mechanism, the $feature.action must be configured with an object instead of a boolean.

Model of the configuration object :

// With a named shema
{
  "schemaSecurity": {
    name: "damImportTarget",
    security: "objectactions/create"
  }
}

// Without named schema
{
  "schemaSecurity": {
    name: "dam/asset",
    security: "objectactions/create"
  }
}

We’ve added the possibility to create namedSchemas for reusability purpose.

security value is the rule you want to test to enable (or disable) the feature.

This configuration enable the possibility to control more precisely who can access to the feature. A user without access to the upload feature will not see the link to the upload page in the menu, nor in the header.

This method will now be recommended instead of the usage of onlyForUserGroups in the configuration of the upload link in the menu ($menu.actionsAvailabled).

Portal configuration to use new Profile form

You can now use a new form component in profile page, this component use faces and consistent form validation. This form is driven by the user object structure AND the portal configuration file. That means that all fields set as editable in structure will be retrieve by the form but this list will be filtered by what you specified in $profile.editablefields. If no editable fields are provided, all the field defined in structure will be displayed.

All other configurations are still used. If you want to keep the old form you’ll have nothing to do, to use the new form you’ll have to add $profile.useLegacy and set it to true.

If you use the new form you can configure your fields like any other fields in the portal application (by setting and customize $edit.profil.fields either by field names or by field types.

  • No labels