...
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
节点名 | 值 |
---|
subApps | | detail | | class | info.magnolia.ui.contentapp.detail.DetailSubAppDescriptor | subAppClass | info.magnolia.ui.contentapp.detail.DetailSubApp |
|
配置编辑器
编辑器是一个能够编辑内容的组件,通常显示为一个表格。编辑器的配置定义内容被保存在哪个工作区,以及哪些节点能够编辑。编辑器是一个能够编辑内容的组件,通常显示为一个表单。编辑器的配置定义内容被保存在哪个工作区,以及哪些节点能够编辑。
在detail子应用下,创建如下节点。
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
节点名 | 值 |
---|
detail | | editor | | nodeType | | icon | icon-items | name | mgnl:product | workspace | products |
|
...
配置表单
您的应用可以创建和编辑任何种类的内容。所以内容决定了您在表格里需要的域。本教程中,产品为古董车。所以我们创建了一个表格,包含以下三个域:产品名,照片,以及照片评分。您的应用可以创建和编辑任何种类的内容。所以内容决定了您在表单里需要的字段。本教程中,产品为古董车。所以我们创建了一个表单,包含以下三个字段:产品名,照片,以及照片评分。
在editor节点
下,创建以下节点。
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
节点名 | 值 |
---|
editor | | form | | tabs | | product | | fields | | name | | class | info.magnolia.ui.form.field.definition.TextFieldDefinition | label | Product name | name | jcrName | fileUpload | | allowedMimeTypePattern | image.* | binaryNodeName | photo | class | info.magnolia.dam.asset.field.definition.DamUploadFieldDefinition | label | Photo | photoCredit | | class | info.magnolia.ui.form.field.definition.TextFieldDefinition | description | Please define a photo credit | label | Photo credit | label | Product | description | Define the product information | label | Edit product |
|
...
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
节点名 | 值 |
---|
detail | | actions | | cancel | | class | info.magnolia.ui.form.action.CancelFormActionDefinition | label | Cancel | save | | class | info.magnolia.ui.form.action.SaveFormActionDefinition | implementationClass | info.magnolia.ui.form.action.SaveFormAction | label | Save changes |
|
...
在编辑器里添加保存和取消按钮
在editor
目录下,创建以下节点。
Advanced Tables - Table Plus |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
|
节点名 |
---|
editor | actions | cancel | save |
|
...