Created
July 13, 2016 05:14
-
-
Save nateyolles/202eabe1a839b9840a9c2ac167d372bb to your computer and use it in GitHub Desktop.
AEM using Granite Custom Render Condition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<widgetCustomRenderConditionHasProperty | |
jcr:primaryType="nt:unstructured" | |
sling:resourceType="granite/ui/components/foundation/form/textfield" | |
fieldLabel="This only shows if "/content/renderconditiondemo/en/jcr:content/par/text" has property "text"" | |
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