Issue
- When making a selection from a web content display widget, clicking the “Sites and Libraries” breadcrumb link only displays the current site.
- Here are the steps to reproduce:
-
Start a 2023.Q4.4 instance.
-
Add a new site called “test-site“.
-
Navigate back to the default “Liferay DXP” site.
-
Add a Web Content Display Widget to the home page.
-
Click the kebab menu and select Configuration.
-
Select a web content and click the “Sites and Libraries” breadcrumb link under the Search bar.
-
Expected Result: All sites should be displayed. For this example, global, Liferay DXP, and test-site should be listed.
Actual Results: Only the Liferay DXP site is displayed.
Environment
- 2023.Q4
Resolution
- This is expected behavior. The rationale behind different sites not sharing Web Content between them as expected behavior is explained in our fix for LPS-102471:
The way Liferay tackles this is through site hierarchy or by means of storing the shared content in the global site. Although these mechanisms solve most of the situations described above, the system is not flexible enough. For example, the global site can become a grab bag, mixing unrelated items just for the sake of sharing them among sites. And site hierarchy makes sense when there's a strict relationship between the sites (headquarters and regional sites, for example), but not quite the same when you want for example to reuse content created by the legal team in other department sites.