Skip to content

Instantly share code, notes, and snippets.

@odaBio
Created October 23, 2021 10:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odaBio/e8ebb790d0541b6cb295d2b72dbb6246 to your computer and use it in GitHub Desktop.
Save odaBio/e8ebb790d0541b6cb295d2b72dbb6246 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Image View"
sling:resourceType="cq/gui/components/authoring/dialog"
extraClientlibs="[core.wcm.components.form.options.v1.editor]"
helpPath="https://www.adobe.com/go/aem_cmp_form_options_v1"
trackingFeature="core-components:form-options:v1">
<content
granite:class="cmp-options--editor-v1"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<options
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"
margin="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<MainHeading
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/heading"
level="{Long}3"
text="Main"/>
<optionTypes
granite:class="cmp-options--editor-type-v1"
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}false"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldDescription="Set the type of the form field."
fieldLabel="Type"
name="./type">
<items jcr:primaryType="nt:unstructured">
<checkbox
jcr:primaryType="nt:unstructured"
text="Checkboxes"
value="checkbox"/>
<radio
jcr:primaryType="nt:unstructured"
text="Radio buttons"
value="radio"/>
<dropdown
jcr:primaryType="nt:unstructured"
text="Drop-down"
value="drop-down"/>
<multiDropDown
jcr:primaryType="nt:unstructured"
text="Multi-select drop-down"
value="multi-drop-down"/>
</items>
</optionTypes>
<source
granite:class="cmp-form-options-source cq-dialog-dropdown-showhide"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldDescription="Source of the options."
fieldLabel="Source"
name="./source">
<granite:data
jcr:primaryType="nt:unstructured"
cq-dialog-dropdown-showhide-target=".list-option-listfrom-showhide-target"/>
<items jcr:primaryType="nt:unstructured">
<local
jcr:primaryType="nt:unstructured"
text="Local"
value="local"/>
<list
jcr:primaryType="nt:unstructured"
text="List"
value="list"/>
<datasource
jcr:primaryType="nt:unstructured"
text="Datasource"
value="datasource"/>
</items>
</source>
<fromLocal
granite:class="hide list-option-listfrom-showhide-target foundation-layout-util-vmargin"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<granite:data
jcr:primaryType="nt:unstructured"
showhidetargetvalue="local"/>
<items jcr:primaryType="nt:unstructured">
<options
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldDescription="Define the options. For single selection types, the last selected option in the list is selected in the result."
fieldLabel="Options"
renderReadOnly="{Boolean}true">
<field
granite:class="cmp-options--editor-item-multifield-composite-item coral-Well"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container"
name="./items">
<items jcr:primaryType="nt:unstructured">
<option
granite:class="cmp-options--editor-item-multifield-composite-item-container"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<selected
granite:class="cmp-form-option-item-active"
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./selected"
text="Selected"
uncheckedValue="false"
value="{Boolean}true"/>
<disabled
granite:class="cmp-form-option-item-disabled"
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./disabled"
text="Disabled"
value="{Boolean}true"/>
<value
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}false"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Value"
name="./value"/>
<text
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}false"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
features="modifylink,unlink"
fieldLabel="Text"
name="./text"/>
<title
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Title"
name="./title"/>
<url
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
features="modifylink,unlink"
fieldLabel="URL"
name="./url"/>
<file
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="cq/gui/components/authoring/dialog/fileupload"
autoStart="{Boolean}false"
class="cq-droptarget"
fieldLabel="Image asset"
fileNameParameter="./fileName"
fileReferenceParameter="./fileReference"
mimeTypes="[image/gif,image/jpeg,image/png,image/tiff,image/svg+xml]"
multiple="{Boolean}false"
name="./file"
title="Upload Image Asset"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true"/>
<links
jcr:primaryType="nt:unstructured"
features="modifylink,unlink"/>
<fileupload
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}false"
sling:resourceType="cq/gui/components/authoring/dialog/fileupload"
allowUpload="{Boolean}false"
autoStart="{Boolean}false"
class="cq-droptarget"
fieldLabel="Image"
fileNameParameter="./fileName"
fileReferenceParameter="./fileReference"
mimeTypes="[image/gif,image/jpeg,image/png,image/webp,image/svg+xml]"
multiple="{Boolean}false"
name="./fileName"
title="Upload an image asset:"
uploadUrl="${suffix.path}"
useHTML5="{Boolean}true"/>
</items>
</option>
</items>
</field>
</options>
</items>
</fromLocal>
<aboutHeading
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/heading"
level="{Long}3"
text="About"/>
<id
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="HTML ID attribute to apply to the component."
fieldLabel="ID"
name="./id"/>
<text
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}false"
sling:resourceType="cq/gui/components/authoring/dialog/richtext"
name="./text"
useFixedInlineToolbar="{Boolean}true">
<rtePlugins jcr:primaryType="nt:unstructured">
<format
jcr:primaryType="nt:unstructured"
features="bold,italic"/>
<justify
jcr:primaryType="nt:unstructured"
features="-"/>
<links
jcr:primaryType="nt:unstructured"
features="modifylink,unlink"/>
<lists
jcr:primaryType="nt:unstructured"
features="*"/>
<misctools jcr:primaryType="nt:unstructured">
<specialCharsConfig jcr:primaryType="nt:unstructured">
<chars jcr:primaryType="nt:unstructured">
<default_copyright
jcr:primaryType="nt:unstructured"
entity="&amp;copy;"
name="copyright"/>
<default_euro
jcr:primaryType="nt:unstructured"
entity="&amp;euro;"
name="euro"/>
<default_registered
jcr:primaryType="nt:unstructured"
entity="&amp;reg;"
name="registered"/>
<default_trademark
jcr:primaryType="nt:unstructured"
entity="&amp;trade;"
name="trademark"/>
</chars>
</specialCharsConfig>
</misctools>
<paraformat
jcr:primaryType="nt:unstructured"
features="*">
<formats jcr:primaryType="nt:unstructured">
<default_p
jcr:primaryType="nt:unstructured"
description="Paragraph"
tag="p"/>
<default_h1
jcr:primaryType="nt:unstructured"
description="Heading 1"
tag="h1"/>
<default_h2
jcr:primaryType="nt:unstructured"
description="Heading 2"
tag="h2"/>
<default_h3
jcr:primaryType="nt:unstructured"
description="Heading 3"
tag="h3"/>
<default_h4
jcr:primaryType="nt:unstructured"
description="Heading 4"
tag="h4"/>
<default_h5
jcr:primaryType="nt:unstructured"
description="Heading 5"
tag="h5"/>
<default_h6
jcr:primaryType="nt:unstructured"
description="Heading 6"
tag="h6"/>
<default_blockquote
jcr:primaryType="nt:unstructured"
description="Quote"
tag="blockquote"/>
<default_pre
jcr:primaryType="nt:unstructured"
description="Preformatted"
tag="pre"/>
</formats>
</paraformat>
<table
jcr:primaryType="nt:unstructured"
features="-">
<hiddenHeaderConfig
jcr:primaryType="nt:unstructured"
hiddenHeaderClassName="cq-wcm-foundation-aria-visuallyhidden"
hiddenHeaderEditingCSS="cq-RichText-hiddenHeader--editing"/>
</table>
<tracklinks
jcr:primaryType="nt:unstructured"
features="*"/>
</rtePlugins>
<uiSettings jcr:primaryType="nt:unstructured">
<cui jcr:primaryType="nt:unstructured">
<inline
jcr:primaryType="nt:unstructured"
toolbar="[format#bold,format#italic,format#underline,#justify,#lists,links#modifylink,links#unlink,#paraformat]">
<popovers jcr:primaryType="nt:unstructured">
<justify
jcr:primaryType="nt:unstructured"
items="[justify#justifyleft,justify#justifycenter,justify#justifyright,justify#justifyjustify]"
ref="justify"/>
<lists
jcr:primaryType="nt:unstructured"
items="[lists#unordered,lists#ordered,lists#outdent,lists#indent]"
ref="lists"/>
<paraformat
jcr:primaryType="nt:unstructured"
items="paraformat:getFormats:paraformat-pulldown"
ref="paraformat"/>
</popovers>
</inline>
<tableEditOptions
jcr:primaryType="nt:unstructured"
toolbar="[table#insertcolumn-before,table#insertcolumn-after,table#removecolumn,-,table#insertrow-before,table#insertrow-after,table#removerow,-,table#mergecells-right,table#mergecells-down,table#mergecells,table#splitcell-horizontal,table#splitcell-vertical,-,table#selectrow,table#selectcolumn,-,table#ensureparagraph,-,table#modifytableandcell,table#removetable,-,undo#undo,undo#redo,-,table#exitTableEditing,-]"/>
</cui>
</uiSettings>
</text>
<title
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Legend to describe the role of the field."
fieldLabel="Title"
name="./jcr:title"
required="{Boolean}true"/>
<name
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="The name of the field, which is submitted with the form data."
fieldLabel="Name"
name="./name"
required="{Boolean}true"/>
<description
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="A hint for the user of what can be entered in the field."
fieldLabel="Help message"
name="./helpMessage"/>
<fromDatasource
granite:class="hide list-option-listfrom-showhide-target foundation-layout-util-vmargin"
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/container">
<granite:data
jcr:primaryType="nt:unstructured"
showhidetargetvalue="datasource"/>
<items jcr:primaryType="nt:unstructured">
<fromDatasource
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldDescription="Resource type of the datasource."
fieldLabel="Datasource"
name="./datasourceRT"/>
</items>
</fromDatasource>
<fromList
granite:class="hide list-option-listfrom-showhide-target foundation-layout-util-vmargin"
jcr:primaryType="nt:unstructured"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/container">
<granite:data
jcr:primaryType="nt:unstructured"
showhidetargetvalue="list"/>
<items jcr:primaryType="nt:unstructured">
<fromList
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Path of the static list."
fieldLabel="List"
name="./listPath"/>
</items>
</fromList>
</items>
</columns>
</items>
</options>
</items>
</content>
</jcr:root>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment