Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Rename macro 'n' to 'mgnl-n'.

...

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

节点名

Mgnl f
modules

 

Mgnl f
templating

 

Mgnl f
templates

 

Mgnl f
components

 

Mgnl n
textBlock

 

mgnl-p
dialog

templating:textBlock

mgnl-p
renderType

freemarker

mgnl-p
templateScript

/templates/components/textBlock.ftl

mgnl-p
title

Text Block

创建组件脚本

组件脚本绘制组件内容。在我们的示例组件中,内容仅为简单的文字。脚本从内容库中读取文字并绘制出来。

...

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

Mgnl f
modules

 

Mgnl f
templating

 

Mgnl f
dialogs

 

Mgnl n
textBlock

 

Mgnl n
actions

 

Mgnl n
cancel

 

mgnl-p
class

info.magnolia.ui.admincentral.dialog.action.CancelDialogActionDefinition

mgnl-p
label

Cancel

Mgnl n
save

 

mgnl-p
class

info.magnolia.ui.admincentral.dialog.action.SaveDialogActionDefinition

mgnl-p
label

Save changes

Mgnl n
form

 

Mgnl n
tabs

 

Mgnl n
text

 

Mgnl n
fields

 

Mgnl n
text

 

mgnl-p
class

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

mgnl-p
label

Component text

mgnl-p
rows

5

mgnl-p
label

Text block

为页面添加组件

现在您已经准备好了为页面添加组件所需的一切:定义好的组件,组件脚本,组件对话框,并且在main区域内可用。

...