Skip to main content

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.

  1. Create a Velocity Format containing:

    Velocity
    <meta name="id" content="${currentPage.identifier.id}"/>
  2. Create a new region within the <head> tags of your Template:

    HTML
    <!-- Page ID for deeplinking. -->
    <system-region name="PAGE_ID"/>
  3. Attach your Format to this new region in your Template.
  4. Publish all pages using that Template so the <meta> tag reaches your web server.

See also Siteimprove Integration and DubBot Integration.