Versions Compared

Key

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

...

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

节点名

modules

 

templating

 

templates

 

components

 

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
节点名

modules

 

templating

 

dialogs

 

textBlock

 

actions

 

cancel

 

mgnl-p
class

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

mgnl-p
label

Cancel

save

 

mgnl-p
class

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

mgnl-p
label

Save changes

form

 

tabs

 

text

 

fields

 

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区域内可用。

...