Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How To Select Current Page In Liferay Staging Pop-Up
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 ?
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.