Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Workbench properties

contentViews

required

Parent node for the content view definitions. Defines how users can view content in the workbench. The parent node for the specific content view definitions. It must  Must contain at least one content view (see Content view definition).

name

optional, default is workbench

Name of the workbench.

dragAndDrop

optional, default is true

Set to false to disable drag and drop operations in the workbench.

dropConstraintClass

optional, default is AlwaysTrueDropConstraint

A drag-and-drop constraint class. By restricting the nodes that a user can move you can enforce a certain node hierarchy. For example, you might want to allow content to be moved under folders but not folders under content. If the class is not defined, the AlwaysTrueDropConstraint is set as default. When you write your own class, implement the 

Javadoc
0info.magnolia.ui.workbench.tree.drop.DropConstraint
 interface.

editable

optional

Defines whether the workbench is editable inline. You can double-click a cell to edit its value. Works only for columns that are also configured as editable.

(warning) You cannot define a default action and use inline editing at the same time.

contentTools

optional

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

Javadoc
0info.magnolia.ui.workbench.contenttool.ContentToolDefinition
Javadoc
0info.magnolia.ui.workbench.WorkbenchPresenter
is implemented in a way that it automatically configures a "search box" if you have both list and search view defined.