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

Compare with Current View Page History

« Previous Version 17 Next »

Workbench is a view that displays content items in a workspace. It is part of the content app framework, typically defined in the browser subapp. The workbench contains a list of content views. Common view types are tree, list and thumbnail.

Example workbench definition

workbench:
  contentViews:
    - name: tree
      dropConstraint:
        $type: jcrDropConstraint
        primaryNodeType: mgnl:contact
      $type: treeView
      columns: &columns
        - name: jcrName
          label: name
          $type: jcrNameColumn
          editable: true
          nodeTypeToIcon:
            mgnl:contact: icon-people
            mgnl:content: icon-folder
          editor:
            availability:
              nodes: true
              properties: true
        - name: value
          label: value
          editable: true
          editor:
            availability:
              nodes: false
              properties: true
        - name: jcrPath
          label: path
          $type: jcrPathColumn
        - name: status
          label: status
          $type: jcrStatusColumn
        - name: mgnl:created
          $type: dateColumn
          label: date
          editable: false
          editor:
            availability: *onlyContacts
            field:
              $type: textField
              converterClass: com.vaadin.data.converter.StringToDateConverter
    - name: list
      columns: *columns
      $type: listView
    - $type: thumbnailView

Workbench properties

contentViews

required

Parent node for the content view definitions. Defines how users can view content in the workbench.

Must contain at least one content view. For more information, see Content view definition.

name

optional, default is workbench

Name of the workbench.

extensionViews

optional

A list of configured content tools. A content tool must be configured with

$webResourceManager.requireResource("info.magnolia.sys.confluence.artifact-info-plugin:javadoc-resource-macro-resources") ContentToolDefinition
$webResourceManager.requireResource("info.magnolia.sys.confluence.artifact-info-plugin:javadoc-resource-macro-resources") WorkbenchPresenter
is implemented in a way that it automatically configures a "search box" if you have both list and search view defined. 

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels