Skip to content

Commit

Permalink
add sample content fragment models.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 25, 2021
1 parent f3b05f2 commit ead9d0c
Show file tree
Hide file tree
Showing 3 changed files with 520 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
allowedPaths="[/content/entities(/.*)?]"
ranking="{Long}100">
<jcr:content
cq:lastModified="{Date}2019-11-14T15:18:23.510+11:00"
cq:lastModified="{Date}2021-06-10T15:52:07.349+10:00"
cq:lastModifiedBy="admin"
cq:scaffolding="/conf/aemdesign/settings/dam/cfm/models/all-field-types/jcr:content/model"
cq:templateType="/libs/settings/dam/cfm/model-types/fragment"
Expand All @@ -22,18 +22,18 @@
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:lastModified="{Date}2019-11-14T15:18:23.510+11:00"
jcr:lastModified="{Date}2021-06-10T15:52:07.349+10:00"
jcr:lastModifiedBy="admin"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
<items
jcr:primaryType="nt:unstructured"
maxGeneratedOrder="32">
maxGeneratedOrder="20">
<_x0031_573704859651
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Text"
listOrder="21"
listOrder="1"
maxlength="255"
metaType="text-single"
name="text"
Expand All @@ -44,7 +44,7 @@
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Text Multi"
listOrder="30"
listOrder="1"
maxlength="255"
metaType="text-single"
name="textmulti"
Expand All @@ -55,19 +55,86 @@
jcr:primaryType="nt:unstructured"
sling:resourceType="dam/cfm/admin/components/authoring/contenteditor/multieditor"
cfm-element="Multiline Rich Text"
default-mime-type="text/html"
listOrder="22"
fieldDescription="Use paragraph marks as indicators for updating Paragraph Asset and Paragraph Asset Index fields."
listOrder="2"
metaType="text-multi"
name="multilinerichtext"
renderReadOnly="false"
showEmptyInReadOnly="true"
valueType="string"/>
<_x0031_616122972187
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
emptyText="Specify an asset or enter value that will appear at specific paragraph in Multiline Rich Text."
fieldDescription="Each of the assets here corresponds to an index in Paragraph Content Index field. Don't forget to add corresponding index entry for each asset."
fieldLabel="Multiline Rich Text - Paragraph Asset"
filter="hierarchy"
listOrder="8"
metaType="reference"
name="multilinerichtext__asset"
nameSuffix="contentReference"
renderReadOnly="false"
showEmptyInReadOnly="true"
valueType="string[]">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="dam/cfm/models/editor/components/contentreference"
emptyText="Specify an asset or enter value that will appear at specific paragraph in Multiline Rich Text."
name="multilinerichtext__asset"
renderReadOnly="false"/>
</_x0031_616122972187>
<_x0031_616122928056
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
emptyText="Specify an index that represents a paragraph in Multiline Rich Text field."
fieldDescription="Each index here corresponds to an asset in Multiline Rich Text - Paragraph Asset field. Don't forget to add the corresponding asset entry for each index. Index 0 will insert asset above the first paragraph."
fieldLabel="Multiline Rich Text - Paragraph Asset Index"
listOrder="3"
metaType="number"
name="multilinerichtext__assetindex"
renderReadOnly="false"
showEmptyInReadOnly="true"
step="1"
typeHint="long"
value="1"
valueType="long[]">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
emptyText="Specify an index that represents a paragraph in Multiline Rich Text field."
name="multilinerichtext__assetindex"
renderReadOnly="false"
typeHint="long"
value="1"/>
</_x0031_616122928056>
<_x0031_623303800294
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
emptyText="Specify a template for rendering this asset."
fieldDescription="By default, each asset will be output as an image component, if specifying values for another component select type or leave blank to use the default image template."
fieldLabel="Multiline Rich Text - Paragraph Asset Template"
filter="hierarchy"
listOrder="8"
metaType="reference"
name="multilinerichtext__assettype"
nameSuffix="contentReference"
renderReadOnly="false"
rootPath="/content/cq:tags/aemdesign-showcase/component-dialog/components/workflow/contentfragmentpagegen/parcomponenttypes"
showEmptyInReadOnly="true"
valueType="string[]">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="dam/cfm/models/editor/components/contentreference"
emptyText="Specify a template for rendering this asset."
name="multilinerichtext__assettype"
renderReadOnly="false"
rootPath="/content/cq:tags/aemdesign-showcase/component-dialog/components/workflow/contentfragmentpagegen/parcomponenttypes"/>
</_x0031_623303800294>
<_x0031_573705064916
jcr:primaryType="nt:unstructured"
sling:resourceType="dam/cfm/admin/components/authoring/contenteditor/multieditor"
cfm-element="Multiline Markdown"
default-mime-type="text/x-markdown"
listOrder="31"
listOrder="2"
metaType="text-multi"
name="multilinemarkdown"
renderReadOnly="false"
Expand All @@ -77,8 +144,7 @@
jcr:primaryType="nt:unstructured"
sling:resourceType="dam/cfm/admin/components/authoring/contenteditor/multieditor"
cfm-element="Multiline Plain Text"
default-mime-type="text/plain"
listOrder="32"
listOrder="2"
metaType="text-multi"
name="multilineplaintext"
renderReadOnly="false"
Expand All @@ -88,7 +154,7 @@
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
fieldLabel="Number"
listOrder="23"
listOrder="3"
metaType="number"
name="number"
renderReadOnly="false"
Expand All @@ -98,7 +164,7 @@
<_x0031_573704904839
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
listOrder="24"
listOrder="4"
metaType="boolean"
name="boolean"
renderReadOnly="false"
Expand All @@ -111,7 +177,7 @@
displayedFormat="YYYY-MM-DD HH:mm"
emptyText="YYYY-MM-DD HH:mm"
fieldLabel="DateTime"
listOrder="25"
listOrder="5"
metaType="date"
name="datetime"
renderReadOnly="false"
Expand All @@ -128,7 +194,7 @@
sling:resourceType="granite/ui/components/coral/foundation/form/select"
emptyOption="{Boolean}true"
fieldLabel="Enumeration"
listOrder="26"
listOrder="6"
metaType="enumeration"
name="enumeration"
options="value1,value2"
Expand All @@ -144,7 +210,7 @@
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/coral/common/form/tagfield"
fieldLabel="Tags"
listOrder="27"
listOrder="7"
metaType="tags"
multiple="true"
name="tags"
Expand All @@ -157,7 +223,7 @@
sling:resourceType="dam/cfm/models/editor/components/contentreference"
fieldLabel="Content Reference"
filter="hierarchy"
listOrder="28"
listOrder="8"
metaType="reference"
name="contentreference"
nameSuffix="contentReference"
Expand All @@ -169,7 +235,7 @@
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
fieldLabel="Content Reference Multi"
filter="hierarchy"
listOrder="29"
listOrder="8"
metaType="reference"
name="contentreferencemulti"
nameSuffix="contentReference"
Expand Down
Loading

0 comments on commit ead9d0c

Please sign in to comment.