Provide Page Fragment Usage Visibility Across Sites and Pages for Global Site

What is the problem you are trying to solve?

We use centrally managed Page Fragments that are shared across multiple sites. Today Liferay only shows that a fragment is used by a particular site, but it does not provide visibility into the actual pages where the fragment is placed.

This creates a governance and operational challenge. Before modifying a shared fragment, administrators cannot easily determine:

  • Which pages are using the fragment
  • Which URLs will be affected by the change
  • What business impact the change may have
  • Which pages should be validated after an update

This limitation already exists for Global Site Fragment Sets and becomes even more important with Design Libraries, where organizations are expected to manage and distribute shared components across many websites.

For large enterprise installations with hundreds or thousands of pages, site-level visibility is not sufficient for impact analysis and change management.

What is your project about? (e.g. Intranet, Partner Portal, Enterprise Website, etc)

Enterprise websites and customer-facing digital channels managed from a central Liferay DXP platform.

We use shared fragments to ensure consistent branding, user experience, and functionality across multiple websites maintained by different teams.

What is your proposed solution? (optional)

Provide a usage report for shared fragments (Global Site fragments and Design Library fragments) that shows where a fragment is actually used.

For each fragment, administrators should be able to see:

  • Site name
  • Page name
  • Page URL / Friendly URL
  • Publication status (optional)
  • Fragment version (if versioning is applicable)

Additionally, before propagating changes from a Design Library, administrators should be able to review all impacted pages and URLs.

This capability would significantly improve:

  • Impact analysis
  • Change management
  • Governance
  • Troubleshooting
  • Safe adoption of Design Libraries in enterprise environments

Example: Before updating a shared Header, Footer, Banner, Cookie Consent, or Tracking fragment, administrators should be able to instantly identify every page that will be affected by the change.

Actually when you’re in the fragments list panel, one of the … items is Usage, and that does know the pages that the fragment is on. I think the info is there, just maybe not where you’d hope it would be?

And, if you disable automatic propagation, changes to shared fragments will not affect existing pages using the older version. It does make fragment propagation a manual step (again done through the Usages panel), but you would protect yourself from the stepping on issue you’ve raised.

And, in fact, you can either use the Usage panel to propagate the change to all usages, no usages, or selected usages. You could combine the “no propagation” with “you have to open the page and save to test and then force propagation to that page, cancel to prevent propagation”, but it freezes the ability to update your page until you’re ready for the propagation.