Versions Compared

Key

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

...

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

Mgnl n
browser

 

Mgnl n
workbench

 

Mgnl n
contentViews

 

Mgnl n
tree

 

Mgnl n
list

 

Mgnl n
columns

 

Mgnl p
class

info.magnolia.ui.workbench.list.ListPresenterDefinition

Mgnl n
thumbnail

 

Mgnl n
search

 

Mgnl p
dragAndDrop

false

Mgnl p
dropConstraintClass

info.magnolia.contacts.app.main.tree.ContactDropConstraint

Mgnl p
editable

false

Properties:

  • contentViews: Defines the views how the content is displayed.
    • <content view name>: The available views are treelistthumbnail and search.
      • columns: Column definitions for tree, list and search views. You don't need to define columns for the thumbnail view.
      • class: A presenter class that displays the content in a tree, list, thumbnail or search view. The options are 
        Javadoc
        0info.magnolia.ui.workbench.tree.TreePresenterDefinition
        Javadoc
        0info.magnolia.ui.workbench.list.ListPresenterDefinition
        Javadoc
        0info.magnolia.ui.workbench.thumbnail.ThumbnailPresenterDefinition
         and 
        Javadoc
        0info.magnolia.ui.workbench.search.SearchPresenterDefinition
        . Use the fully-qualified class name. If you write your own presenter, look at the 
        Javadoc
        0info.magnolia.ui.workbench.definition.ConfiguredContentPresenterDefinition
         which implements the 
        Javadoc
        0info.magnolia.ui.workbench.definition.ContentPresenterDefinition
         interface.
      • viewType: Element of the 
        Javadoc
        0info.magnolia.ui.workbench.ContentView.ViewType
         enumeration: TREE, LIST, THUMBNAIL or SEARCH. You only need this property when you write your own view presenter.
      • implementationClass: In a workbench, the implementation class responsible for creating, configuring and updating the view. Typically a default implementation class is already hard-coded in the definition class. You only need to add this property if you want to override the default implementation with your own.

      • icon: CSS class that identifies an icon used on the view tab. For available names see Icons.
      • active: Defines whether the view is active. Default is true.
  • dragAndDrop: (warning) Magnolia 5.3.16+ Set to false to disable drag and drop operations in the workbench. Default is true.
  • dropConstraintClass: Drag and drop constraint class. By restricting the nodes that a user can move you can enforce a hierarchy. For example, you might want to allow moving of content nodes under folders but not under other content nodes. If the class is not defined, the tree view will have no drag and drop capability. When you write your own class, implement the 
    Javadoc
    0info.magnolia.ui.workbench.tree.drop.DropConstraint
     interface.
  • editable: Makes the data displayed in the workbench editable inline. When the user double-clicks the cell it becomes an editable field.

...

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
Node nameValue

Mgnl n
browser

 

Mgnl n
workbench

 

Mgnl n
nodeTypes

 

Mgnl n
contact

 

Mgnl p
icon

icon-user-public

Mgnl p
name

mgnl:contact

Mgnl n
folder

 

Mgnl p
icon

icon-folder-l

Mgnl p
name

mgnl:folder

Mgnl n
contentViews

 

Mgnl n
tree

 

Mgnl n
list

 

Mgnl n
columns

 

Mgnl p
class

info.magnolia.ui.workbench.list.ListPresenterDefinition

Mgnl n
thumbnail

 

Mgnl n
search

 

Mgnl p
defaultOrder

jcrName

Mgnl p
dropConstraintClass

info.magnolia.contacts.app.main.tree.ContactDropConstraint

Mgnl p
editable

false

Mgnl p
includeProperties

false

Mgnl p
path

/

Mgnl p
workspace

contacts

Properties:

  • nodeTypes:  The types of content displayed in the workbench. For example, the workbench in the Contacts app displays contacts and folders.
    • <node type name>
      • icon:CSS class name of the icon displayed on the workbench. See the default icons that ship with Magnolia or create your own.
      • nameNode type the workbench operates on. These are Magnolia or JCR node types such as mgnl:contact.
  • contentViews: Defines the views how the content is displayed.
    • <content view name>: The available views are treelistthumbnail and search.
      • columns: Column definitions for tree, list and search views. You don't need to define columns for the thumbnail view.
      • class: A presenter class that displays the content in a tree, list, thumbnail or search view. The options are 
        Javadoc
        0info.magnolia.ui.workbench.tree.TreePresenterDefinition
        Javadoc
        0info.magnolia.ui.workbench.list.ListPresenterDefinition
        Javadoc
        0info.magnolia.ui.workbench.thumbnail.ThumbnailPresenterDefinition
         and 
        Javadoc
        0info.magnolia.ui.workbench.search.SearchPresenterDefinition
        . Use the fully-qualified class name. If you write your own presenter, look at the 
        Javadoc
        0info.magnolia.ui.workbench.definition.ConfiguredContentPresenterDefinition
         which implements the 
        Javadoc
        0info.magnolia.ui.workbench.definition.ContentPresenterDefinition
         interface.
      • viewType: Element of the 
        Javadoc
        0info.magnolia.ui.workbench.ContentView.ViewType
         enumeration: TREE, LIST, THUMBNAIL or SEARCH. You only need this property when you write your own view presenter.
      • implementationClass: In a workbench, the implementation class responsible for creating, configuring and updating the view. Typically a default implementation class is already hard-coded in the definition class. You only need to add this property if you want to override the default implementation with your own.

      • icon: CSS class that identifies an icon used on the view tab. For available names see Icons.
      • active: Defines whether the view is active. Default is true.
  • defaultOrder: Default sort order for the content items in list views. The value is the name of the property you want to sort by, such as jcrName.
  • dropConstraintClass: Drag and drop constraint class. By restricting the nodes that a user can move you can enforce a hierarchy. For example, you might want to allow moving of content nodes under folders but not under other content nodes. If the class is not defined, the tree view will have no drag and drop capability. When you write your own class, implement the 
    Javadoc
    0info.magnolia.ui.workbench.tree.drop.DropConstraint
     interface.
  • editable: Makes the data displayed in the workbench editable inline. When the user double-clicks the cell it becomes an editable field.
  • includeProperties: Displays also the JCR properties of the node when set to true. Only nodes and subnodes are displayed when false.
  • path: Path configured as root for this workspace. Only content below the path is operated on. If not specified, defaults to workspace root (/).
  • workspace: The workspace in the magnolia repository where the content resides.