Page History
...
A connector definition specifies the data source. In case of a JCR connector, the definition requires you to specify a workspace and a path in that workspace. Each content app subapp must provide its own content connector definition. If you implement your own connector, extend info.magnolia.ui.vaadin.integration.contentconnector.ContentConnectorDefinition
.
Localtab Group | ||||||||
---|---|---|---|---|---|---|---|---|
Localtab | ||||||||
| ||||||||
Code Block | ||||||||
| ||||||||
subapps:
browser:
contentConnector:
class: info.magnolia.ui.vaadin.integration.contentconnector.JcrContentConnectorDefinition
implementationClass: info.magnolia.ui.vaadin.integration.contentconnector.JcrContentConnector Localtab | | |||||||
| ||||||||
Advanced Tables - Table Plus | ||||||||
| ||||||||
Node name | Value |
|
|
|
|
| info
Properties:
class | optional, default is Definition class. Only needed if you implement your own, non-JCR content connector. If you store content in the JCR repository this property is not needed but you need to define a number of other properties. See the JCR content connector example below. The value must be a fully-qualified class name. Examples of definition classes:
| ||||
implementationClass | optional, default is Implementation class that implements the |
...
Note |
---|
We highly recommend using the same |
...
Browser subapp
A JCR content connector definition introduces properties that identify a JCR workspace as a data source. It also defines the node types to operate on.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
subapps:
browser:
contentConnector:
defaultOrder: jcrName
includeProperties: false
rootPath: /
workspace: contacts
nodeTypes:
- name: mgnl:contact
icon: icon-user-public Localtab | | |||||||
| ||||||||
Advanced Tables - Table Plus | ||||||||
| ||||||||
Node name | Value |
|
|
|
|
| ||
| icon-user-public |
Mgnl p |
---|
mgnl:contact
Mgnl p |
---|
Mgnl p |
---|
false
Mgnl p |
---|
Mgnl p |
---|
Properties:
| required List of node types the content connector operates on. For example, the connector in the Contacts app displays contacts and folders. |
| required Arbitrary node name such as |
| required Node type the connector operates on. These are Magnolia or JCR node types such as |
| optional , default is none CSS class name of the icon displayed on the workbench. See the default icons that ship with Magnolia or create your own. |
| optional Specifies whether to include only the exact node type and ignore subtypes. |
| optional Specifies whether to display the current node in list view. Use this property to, for example, exclude folders. |
| required A workspace in the |
| optional 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 |
| optional, default is Displays also the JCR properties of the node when set to |
| optional , default is Displays also nodes used by the system such as nodes internal to the operations of the JCR implementation. Set to |
| optional , default is Path configured as the root of the workspace. Only content below the path is operated on. |
...
Detail subapp
The connect definition for a detail subapp is much simpler. You only need to define the workspace.
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
subapps:
detail:
contentConnector:
workspace: contacts Localtab | | |||||||
| ||||||||
Advanced Tables - Table Plus | ||||||||
| ||||||||
Node name | Value |
|
|
|
|
Example: non-JCR content connector
This is an example content connector definition for a content app that manages files on the local file system. This is a simplified example.
Localtab Group | ||||||||
---|---|---|---|---|---|---|---|---|
Localtab | ||||||||
| ||||||||
Code Block | ||||||||
| ||||||||
subApps:
browser:
contentConnector:
class: info.magnolia.filesystembrowser.app.contentconnector.FSContentConnectorDefinition
rootFolder: /Users/jsmith/Documents/magnolia Localtab | | |||||||
| ||||||||
Advanced Tables - Table Plus | ||||||||
| ||||||||
Node name | Value |
|
|
|
|
|
| |
| info.magnolia.filesystembrowser.app.contentconnector.FSContentConnectorDefinition |
|
Credits:
- Database icon by Anton Outkine from The Noun Project
- Cloud icon by Edward Boatman from The Noun Project