Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fixed issues according to developer review

...

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

subApps

 

detail

 

Paragraph

class

 info.magnolia.ui.contentapp.detail.DetailSubAppDescriptor

Paragraph

subAppClass

 info.magnolia.ui.contentapp.detail.DetailSubApp

配置编辑器

编辑器是一个能够编辑内容的组件,通常显示为一个表格。编辑器的配置定义内容被保存在哪个工作区,以及哪些节点能够编辑。编辑器是一个能够编辑内容的组件,通常显示为一个表单。编辑器的配置定义内容被保存在哪个工作区,以及哪些节点能够编辑。

detail子应用下,创建如下节点。

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

detail

 

editor

 

nodeType

 

Paragraph

icon

icon-items

Paragraph

name

mgnl:product

Paragraph

workspace

products

...

配置表单

您的应用可以创建和编辑任何种类的内容。所以内容决定了您在表格里需要的域。本教程中,产品为古董车。所以我们创建了一个表格,包含以下三个域:产品名,照片,以及照片评分。您的应用可以创建和编辑任何种类的内容。所以内容决定了您在表单里需要的字段。本教程中,产品为古董车。所以我们创建了一个表单,包含以下三个字段:产品名,照片,以及照片评分。

editor节点下,创建以下节点。

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

节点名

editor

 

form

 

tabs

 

product

 

fields

 

name

 

Paragraph

class

info.magnolia.ui.form.field.definition.TextFieldDefinition

Paragraph

label

Product name

Paragraph

name

jcrName

fileUpload

 

Paragraph

allowedMimeTypePattern

image.*

Paragraph

binaryNodeName

photo

Paragraph

class

info.magnolia.dam.asset.field.definition.DamUploadFieldDefinition

Paragraph

label

Photo

photoCredit

 

Paragraph

class

info.magnolia.ui.form.field.definition.TextFieldDefinition

Paragraph

description

Please define a photo credit

Paragraph

label

Photo credit

Paragraph

label

Product

Paragraph

description

Define the product information

Paragraph

label

Edit product

...

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

detail

 

actions

 

cancel

 

Paragraph

class

info.magnolia.ui.form.action.CancelFormActionDefinition

Paragraph

label

Cancel

save

 

Paragraph

class

info.magnolia.ui.form.action.SaveFormActionDefinition

Paragraph

implementationClass

info.magnolia.ui.form.action.SaveFormAction

Paragraph

label

Save changes

...

在编辑器里添加保存和取消按钮

editor目录下,创建以下节点。

Advanced Tables - Table Plus
enableHeadingAttributesfalse
enableSortingfalse
classm5-configuration-tree
enableHighlightingfalse
节点名

editor

actions

cancel

save

...