External Azure storage
To use the Azure storage, you first need to put Azure credentials in /modules/hybrid-assets/config.yaml
accountKey: /azure-credentials/accountkey
sig: /azure-credentials/sig
The Azure accountKey and SIG are configured in the Passwords app.
To use Link external content action. You first need to override the referenceFactory and stores configuration in /modules/hybrid-assets/config.yaml
Please refer an example from Sample configuration for reference factory and stores
External reference factory
Then decorate subApp to override linkAzure
action to use hybrid-assets-advanced:linkAzureContent
in hybridAssets.subApps.yaml
jcrBrowser:
actions:
linkContent: !override
icon: icon-link
class: info.magnolia.ui.dialog.actions.OpenDialogActionDefinition
dialogId: hybrid-assets-advanced:linkAzureContent
availability:
root: true
writePermissionRequired: true
rules:
notDeleted: &isNotDeleteRule
$type: jcrIsDeletedRule
negate: true
Remember to add module.yaml
into your light module for decoration work in right order.
version: 1.0
dependencies:
hybrid-assets-advanced:
version: "*"