Skip to content

Commit

Permalink
add date format to generic details.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Jun 4, 2021
1 parent 1a7a923 commit afb916b
Showing 1 changed file with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,46 @@

</items>
</descriptionFormat>

<dateFormat
jcr:primaryType="nt:unstructured"
jcr:title="Date"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">

<dateDisplayFormat
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/select"
fieldDescription="Format of Date that will appear for display"
fieldLabel="Display Format"
name="./dateDisplayFormat"
emptyOption="{Boolean}true"
value="">
<datasource
jcr:primaryType="nt:unstructured"
sling:resourceType="aemdesign/components/coral/datasources/tags"
variant="tagidvalue"
path="/content/cq:tags/${(empty tenant.id and empty tenantId) ? 'aemdesign' : (empty tenant.id ? tenantId : tenant.id )}/component-style-theme/details/generic-details/format/datedisplay"/>
</dateDisplayFormat>

<dateFormat
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/select"
fieldDescription="Format of Date in machine-readable format so that browsers can offer to add date reminders through the user's calendar, and search engines can produce smarter search results"
fieldLabel="Format"
name="./dateFormat"
emptyOption="{Boolean}true"
value="">
<datasource
jcr:primaryType="nt:unstructured"
sling:resourceType="aemdesign/components/coral/datasources/tags"
variant="tagidvalue"
path="/content/cq:tags/${(empty tenant.id and empty tenantId) ? 'aemdesign' : (empty tenant.id ? tenantId : tenant.id )}/component-style-theme/details/generic-details/format/date"/>
</dateFormat>

</items>
</dateFormat>

</items>
</column2>
</items>
Expand Down

0 comments on commit afb916b

Please sign in to comment.