Skip to content

Instantly share code, notes, and snippets.

@nateyolles
Created July 13, 2016 05:14
Show Gist options
  • Save nateyolles/202eabe1a839b9840a9c2ac167d372bb to your computer and use it in GitHub Desktop.
Save nateyolles/202eabe1a839b9840a9c2ac167d372bb to your computer and use it in GitHub Desktop.
AEM using Granite Custom Render Condition
<widgetCustomRenderConditionHasProperty
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
fieldLabel="This only shows if &quot;/content/renderconditiondemo/en/jcr:content/par/text&quot; has property &quot;text&quot;"
name="./widgetCustomRenderConditionHasProperty">
<granite:rendercondition
jcr:primaryType="nt:unstructured"
sling:resourceType="renderconditiondemo/components/renderconditions/hasProperty"
resourcePath="${requestPathInfo.suffix}"
propertyName="text"/>
</widgetCustomRenderConditionHasProperty>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment