Module assets store the functional data of the censhare Web workspace.

All declarations for the Workspace module assets are stored as system module assets in censhare-Server/install/system/required/web/workspace. By executing the Synchronize system module assets server action in the Admin Client, modifications to it can be applied. Always make sure that there are no conflicts and errors until the execution of that server action is completed.

Directories for the system module assets:

  • 01_widgets/
    • Contains asset declarations for widgets
    • Ideally only one asset per widget type
    • Widget.asset.template.xml - Template for a new widget asset
  • 02_preconfigured-widgets/
    • Contains declarations for widget configuration assets
    • One widget asset may have several configuration assets
    • Preconfigured Widget.asset.template.xml - Template for a new widget configuration asset
  • 03_containers/
    • Contains declarations for the containers or tabs
    • Container.asset.template.xml - Template for a new container asset
  • 04_pages/
    • Contains declarations for the page assets
    • Page.asset.template.xml - Template for a new page asset
  • 05_navigations/
    • Contains declarations for the navigation items
  • 06workspace-templates/censhare Standard.asset.xml
    • The default workspace. It will be modified when new pages are added/deleted etc.

Modifying existing workspace elements

  • Modify the corresponding asset.xml file as desired
  • Be careful: the element might be shared and used elsewhere!

Deleting workspace elements

  • Create a tombstone .asset.xml in a sub-directory
<asset name=“XXX_ASSET_NAME_XXX” type=“module.workspace.widget.config." domain="root." domain2="root." deletion=“3"> <asset_feature feature=“censhare:resource-key” value_string=“XXX_RESOURCE_KEY_XXX”/>
</asset>