Skip to content

Instantly share code, notes, and snippets.

@nateyolles
Created July 13, 2016 05:23
Show Gist options
  • Save nateyolles/d1ceff0baa61239474d38e790d1330b8 to your computer and use it in GitHub Desktop.
Save nateyolles/d1ceff0baa61239474d38e790d1330b8 to your computer and use it in GitHub Desktop.
AEM Expression Language
<granite:rendercondition
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/renderconditions/simple"
expression="${param.biz == 'baz'}"
expression="${empty param.foo}"
expression="${not empty param.foo and not empty param.bar}"
expression="${param['foo'] not eq 'bar'}"
expression="${cookie.cookiename.value eq 'foo'}"
expression="${requestPathInfo.selectorString == 'edit'}"
expression="${requestPathInfo.suffix != '/foo/bar')}"
expression="${paramValues['item'][0] == '/foo/bar'}"/>
<granite:rendercondition
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/renderconditions/simple"
expression="${granite:contains(requestPathInfo.suffix, '/foo/bar')}"
expression="${!granite:containsIgnoreCase(header['User-Agent'], 'iPad')}"
expression="${granite:relativeParent(requestPathInfo.suffix, 2) != '/content')}"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment