7.0.X, 7.1.X, Master
Steps to Reproduce
- Place this file in your /osgi/configs before starting Liferay (only necessary on master and 7.1.x);
- Startup Liferay DXP;
- Deploy the attached Layout Template according to respective DXP you're testing (you can use the same .war file for both master and 7.1.x);
- Go to Content > Web Content and add two different Basic Web Contents ("Content 1" and "Content 2", for example);
- Now go to Site's Page administrator and add a new Public Page using the new custom Layout Template;
- Go to that page and add a Web Content Display Portlet from the right sidebar;
- Choose one from the two Web Contents previously created to be shown on the Web Content Display;
- Now, inside the Asset Publisher Portlet that was already at the page, click on the other Web Content that you've created (different from Web Content Display's).
The Web Content Display shows the Web Content you previously chose in this Portlet's configuration.
The Web Content Display shows the Web Content you clicked on the Asset Publisher Portlet regardless of the first Portlet's configuration.