Magnolia 5.4 reached end of life on November 15, 2018. This branch is no longer supported, see End-of-life policy.
...
<field name> | Name of field. | ||||||||||
| required Target app name used to create the content view to choose the item from. All content apps provide a workbench. The workbench view is used as the link target chooser by default. However, you can also provide a choose dialog and provide custom actions. See an example in | ||||||||||
| optional, default is Name of the workspace in which the target content is stored if the content app is JCR based. Examples:
| ||||||||||
| optional, default is Makes the text box displaying the link editable once a target has been selected. | ||||||||||
| optional, default is Button label before the target node is selected. | ||||||||||
| optional, default is Button label after the target node is selected. | ||||||||||
| optional, default is Path where to start browsing the workspace. | ||||||||||
| optional The link field returns the path of the selected node by default. You can convert the path to a UUID with a converter. | ||||||||||
| optional Any class that implements the
| ||||||||||
| optional Render a preview of the selected content. The preview component typically displays an image thumbnail and some metadata. | ||||||||||
| optional Any class that implements the
|
...
To understand the process when choosing an item from a content app via link field, basic knowledge of the Content app framework and the nature of
Javadoc | ||||||||
---|---|---|---|---|---|---|---|---|
|
Things to note about LinkField:
Javadoc | ||||||||
---|---|---|---|---|---|---|---|---|
|
#onItemChosen(actionName, chosenValue)
is triggered on the callback. The parameter choosenValue is of type Object
and is the corresponding ItemId of the item of the content app. (See ItemIds and Items). Depending on the implementation of the content app, the ItemId may be a String or a more complex Object. A well-known ItemId is
Javadoc | ||||||||
---|---|---|---|---|---|---|---|---|
|
Code Pro | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
When using LinkField with JCR-agnostic target apps that use complex ItemIds that extend Object
, override the public String toString()
method on the implementation of the itemId.
...