Skip to content

Instantly share code, notes, and snippets.

View fredrick-dominy's full-sized avatar
⚙️
Drive forward, in-steps, with purpose.

Fredrick M Dominy fredrick-dominy

⚙️
Drive forward, in-steps, with purpose.
View GitHub Profile
@fredrick-dominy
fredrick-dominy / TouchUI Heading
Last active October 21, 2017 23:11
TouchUI-Heading
<!-- Cool Heading -->
<someHeading
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/heading"
text="This is the Heading"
level="3"/>
<!-- END Heading -->
@fredrick-dominy
fredrick-dominy / TouchUI File Template
Last active October 21, 2017 23:11
Touch UI File Template
<!-- File template -->
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<layout
@fredrick-dominy
fredrick-dominy / TouchUI Selector
Created October 21, 2017 22:58
TouchUI Selector
<!-- Begin SELECT -->
<selectorName
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/select"
fieldDescription="Select a thing"
fieldLabel="Thing Selection"
name="./selectorName">
<items
jcr:primaryType="nt:unstructured">
<option1
@fredrick-dominy
fredrick-dominy / TouchUI Textfield
Created October 21, 2017 23:08
TouchUI Textfield
<!-- Begin Textfield -->
<someText
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
emptyText="Enter some text"
fieldLabel="Some Kind Of Text"
inputType="text"
name="./someText"/>
<!-- End Textfield -->
@fredrick-dominy
fredrick-dominy / TouchUI TextArea
Last active October 21, 2017 23:34
TouchUI TextArea
<!-- Begin Textarea -->
<someAreaText
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textarea"
resize="both"
emptyText="Enter descriptive prose."
fieldLabel="Add Description"
inputType="textarea"
name="./someAreaText"/>
<!-- End Textarea -->
@fredrick-dominy
fredrick-dominy / TouchUI PathBrowser
Last active October 25, 2017 18:49
TouchUI PathBrowser
<!-- Begin pathBrowser -->
<pathbrowserThing
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldDescription="Usually an image link."
fieldLabel="Path"
name="./pathbrowserThing"
required="{Boolean}true"
rootPath="/content/dam/intouch"/>
<!-- End pathBrowser -->
@fredrick-dominy
fredrick-dominy / TouchUI Multifield
Created October 21, 2017 23:15
TouchUI Multifield
<!-- Begin Multifield with ability for just one item -->
<fieldName
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/multifield"
class="full-width"
fieldDescription="Description of fieldset"
fieldLabel="Multifield Thing">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fieldset"
@fredrick-dominy
fredrick-dominy / TouchUI Multifield No ACS
Created October 21, 2017 23:19
TouchUI Multifield No ACS
<!-- Multifield Sans ACS -->
<columns
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/multifield"
fieldDescription="Multifield Description"
fieldLabel="Multifield Label">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/select"
required="{Boolean}true"
@fredrick-dominy
fredrick-dominy / TouchUI Image Dialog
Created October 21, 2017 23:25
TouchUI Image Dialog
<!-- Begin Image Dialog -->
<imageVariableName jcr:primaryType="nt:unstructured"
jcr:title="Image Properties"
sling:resourceType="granite/ui/components/foundation/section">
<layout jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
margin="{Boolean}false"/>
<items jcr:primaryType="nt:unstructured">
<column jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
@fredrick-dominy
fredrick-dominy / TouchUI Multifield 6.3
Last active January 12, 2018 00:50
TouchUI Multifield 6.3
<!-- Coral Multifield 6.3 -->
<multifield_container
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
deleteHint="{Boolean}true"
fieldDescription="Multifield Description is here."
fieldLabel="Multifield Label is here"
required="{Boolean}false"
typeHint="String[]">