How do I include a page's ID in its contents?
Each asset in Cascade CMS has a unique ID, visible in the URL when viewing the asset in the interface. Including a page's ID in the published source is useful for deep linking back to Cascade CMS from Siteimprove, DubBot, and other third-party reporting platforms.
-
Create a Velocity Format containing:
Velocity<meta name="id" content="${currentPage.identifier.id}"/> -
Create a new region within the
<head>tags of your Template:HTML<!-- Page ID for deeplinking. --> <system-region name="PAGE_ID"/> - Attach your Format to this new region in your Template.
- Publish all pages using that Template so the
<meta>tag reaches your web server.
See also Siteimprove Integration and DubBot Integration.