Subapp descriptor
A subapp descriptor describes a subapp. A subapp is typically rendered as a tab inside an app. The descriptor defines the classes that read the configuration and implement the subapp.
This subapp descriptor is part of the Magnolia 6 UI framework. The
fully qualified class name is
If you work with the Magnolia 5 UI framework, see Subapp descriptor for Magnolia 5 UI instead. |
Example descriptor
icon: icon-app
class: info.magnolia.ui.api.app.registry.ConfiguredAppDescriptor
appClass: info.magnolia.ui.framework.app.BaseApp
label: Base App
subApps:
main:
subAppClass: info.magnolia.ui.framework.app.BaseSubApp
class: info.magnolia.ui.api.app.registry.ConfiguredSubAppDescriptor
label: Base Subapp
Descriptor properties
Property | Description | ||
---|---|---|---|
|
required Subapp node name. The internal ID used to reference the subapp (for example, in URL fragments). |
||
|
required Fully qualified name of the class that contains the subapp business logic. The class must implement the info.magnolia.ui.api.app.SubApp interface. |
||
|
required, default is Subapp descriptor class that reads the configuration. The class must implement the info.magnolia.ui.api.app.SubAppDescriptor interface. Use the fully qualified class name. Another possible value is
|
||
|
optional Connects the subapp to a
data source. For
this to work, you have to use the
If no value is specified, the subapp will inherit the app data source. |
||
|
optional Defines actions in the subapp. Specified actions are rendered as buttons via info.magnolia.ui.api.action.ActionDefinition. Only the actions that are defined will be provided. |
||
|
optional, default is Defines whether the subapp can be closed. When |
||
|
optional CSS class that identifies an icon used for the subapp tab. See How to add SVG icons for apps. If an icon isn’t set for the first subapp, a home icon is used along with the default i18n key for |
||
|
optional Text or message bundle key displayed on the subapp tab.
|
Browser descriptor
info.magnolia.ui.contentapp.configuration.BrowserDescriptor
extends the ContentSubAppDescriptor
class. It allows you to view and
organize content items in tree, list and thumbnail views.
subApps:
browser:
subAppClass: info.magnolia.ui.contentapp.browser.Browser
class: info.magnolia.ui.contentapp.configuration.BrowserDescriptor
Detail descriptor
info.magnolia.ui.contentapp.detail.DetailDescriptor
extends the ContentSubAppDescriptor
class. It allows you to create
and edit content items in the browser.
subApps:
detail:
subAppClass: info.magnolia.ui.contentapp.detail.ContentDetailSubApp
class: info.magnolia.ui.contentapp.detail.DetailDescriptor
You do not need to define default actions for detail subapps. The default
|