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

getUniqueId EL Function

Generates a Unique ID for the resource at the specified path. Does this by appending the name of the resource with a CRC32 checksum of the path to the resource.

Parameters

  • path - java.lang.String - the path for which to generate the id

Returns

java.lang.String - the unique ID

Example:

<div data-id="${ext:getUniqueId(resource.path)}">
</div>

Follow Our Blog Posts

Latest CQ News