Custom Client Extensions - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

The DocLibCustom config section is where dependencies on custom client-side assets can be defined. These are defined in exactly the same way as for custom Forms dependencies.

The client-side dependencies are located in the <dependencies> config container element with the following structure:

<csssrc />  
<js src />        

where:

  • <css>: Stylesheet dependencies element with the following attribute:
    • src: Path to the css file, relative to the /res servlet
  • <js>: JavaScript dependencies element with the following attribute:
    • src: Path to the js file, relative to the /res servlet

Other actions properties can be overridden here, although it is recommended from a maintenance point of view to only override “simple” properties like the icon and label. These make it possible to reuse an action with document-biased icon and label to be used for folders.

Example config

<configevaluator="string-compare"condition="DocLibCustom">   
    <dependencies>
        <css src="/custom/my-customization.css" />  
        <js src="/custom/my-customization.js" /> 
    </dependencies>
</config>