6D Labs / CQ Extended Tag Library / API / Expression Language Functions / getInherited

getInherited EL Function

Gets an inherited value from an InheritanceValueMap.

Parameters

  • properties - com.day.cq.commons.inherit.InheritanceValueMap - the InheritanceValueMap from which to get the property
  • key - java.lang.String - the key of the property to retrieve
  • defaultOrType - java.lang.Object - either the default value or a Class in which to coerce the value

Returns

java.lang.Object - the value, if the default is specified and no value exists for the key the default is returned. If a value exists, it will be cast into the same type as the default or the type of Class if specified.

Example:

${ext:getInherited(iprops,'jcr:title','Default Title')}

Follow Our Blog Posts

Latest CQ News