Created
May 11, 2016 09:04
-
-
Save jdiepeveen/dd5ca58e8c72a15df91604e22d4a76e3 to your computer and use it in GitHub Desktop.
Magnolia CMS snippets for Magnolia CMS templating
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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment