RE: How To Select Current Page In Liferay Staging Pop-Up​

Ganesan Ponselvan, modified 1 Year ago. New Member Posts: 12 Join Date: 4/18/24 Recent Posts

Hi team,

We have enabled the staging functionality in Liferay 7.4GA93 version and whenever user clicks on "Publish to Live", the current page should be checked instead of all pages in staging portlet popup. Please find the screenshot.

I have created staging-fragment and customized the jsp as well, but the issue here is, liferay 7.4ga93 used react.js for developing the pagetree and i can see below code used for creating the PageTree.

<react:component
    module="select_pages/js/PagesTree"
    props="<%= layoutsTreeDisplayContext.getPagesTreeData() %>"
/>

So how to implement this "whenever user clicks on "Publish to Live", the current page should be checked instead of all pages in staging portlet popup" in JSP or do we have any other configration for this, could someone please help us ?

thumbnail
Olaf Kock, modified 1 Year ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

I'd strongly advise against selective staging - after all, there's a lot of content coming with a page, that might also be contained on another page. Rule of thumb would be to publish all staged content when you stage. This even more if you're customizing the Staging UI: Staging itself is complex enough that I can't recommend to maintain custom changes to the infrastructure.

If you routinely want to publish small portions while others are still being worked on, consider Publications instead of Staging: Those can even be named by topic, so administering them makes a lot more sense - especially if shared within a team.