This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<templateSet group="Magnolia CMS"> | |
<template name="textfield" value="- name: $FIELDNAME$ class: info.magnolia.ui.form.field.definition.TextFieldDefinition " description="Insert a TextFieldDefinition" toReformat="false" toShortenFQNames="true"> | |
<variable name="FIELDNAME" expression="" defaultValue="" alwaysStopAt="true" /> | |
</template> | |
<template name="hiddenfield" value="- name: $FIELDNAME$ class: info.magnolia.ui.form.field.definition.HiddenFieldDefinition " description="Insert a HiddenFieldDefinition" toReformat="false" toShortenFQNames="true"> | |
<variable name="FIELDNAME" expression="" defaultValue="" alwaysStopAt="true" /> | |
</template> | |
</templateSet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Abbreviation: checkbox | |
#Description: CheckboxFieldDefinition | |
- name: $FIELD_NAME$ | |
class: info.magnolia.ui.form.field.definition.CheckboxFieldDefinition | |
type: Boolean | |
label: '' | |
#Abbreviation: codefield | |
#Description: CodeFieldDefinition | |
- name: $FIELD_NAME$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[#ftl] | |
[#-- @implicitly included --] | |
[#-- @ftlvariable name="content" type="info.magnolia.jcr.util.ContentMap" --] | |
[#-- @ftlvariable name="ctx" type="info.magnolia.context.MgnlContext" --] | |
[#-- @ftlvariable name="def" type="info.magnolia.rendering.template.configured.ConfiguredTemplateDefinition" --] | |
[#-- @ftlvariable name="state" type="info.magnolia.cms.core.AggregationState" --] | |
[#-- @ftlvariable name="i18n" type="info.magnolia.freemarker.MessagesWrapper" --] | |
[#-- @ftlvariable name="i18nAuthoring" type="info.magnolia.freemarker.MessagesWrapper" --] | |
[#-- @ftlvariable name="cms" type="info.magnolia.templating.freemarker.Directives" --] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'.source.yaml': | |
'TextFieldDefinition': | |
'prefix': 'textfield' | |
'body': '- name: ${1:fieldName}\n\tclass: info.magnolia.ui.form.field.definition.TextFieldDefinition\n\ti18n: true\n$2' | |
'RichTextFieldDefinition': | |
'prefix': 'richtextfield' | |
'body': '- name: ${1:fieldName}\n\tclass: info.magnolia.ui.form.field.definition.RichTextFieldDefinition\n\ti18n: true\n$2' | |
'LinkFieldDefinition': | |
'prefix': 'linktextfield' | |
'body': '- name: ${1:fieldName}\n\tclass: info.magnolia.ui.form.field.definition.LinkFieldDefinition\n\ttargetWorkspace: website\n\tappName: pages\n\tidentifierToPathConverter:\n\t\tclass: info.magnolia.ui.form.field.converter.BaseIdentifierToPathConverter\n$2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[#-- Global assigns --] | |
[#assign editMode = cmsfn.editMode/] | |
[#assign authorInstance = cmsfn.authorInstance/] | |
[#assign previewMode = cmsfn.previewMode/] | |
[#-- Page's model & definition, based on the rendering hierarchy and not the node hierarchy --] | |
[#assign page = cmsfn.page(content)!] | |
[#assign pageModel = model.root!] | |
[#assign pageDef = pageModel.definition!] | |
[#assign pageType = pageDef.type!] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
icon: icon-products | |
appClass: info.magnolia.ui.contentapp.ContentApp | |
class: info.magnolia.ui.contentapp.ConfiguredContentAppDescriptor | |
subApps: | |
browser: | |
class: info.magnolia.ui.contentapp.browser.BrowserSubAppDescriptor | |
subAppClass: info.magnolia.ui.contentapp.browser.BrowserSubApp | |
actions: |