Foren
How to check whether staging is enabled?
Shravan A, geändert vor 11 Jahren.
How to check whether staging is enabled?
Junior Member Beiträge: 29 Beitrittsdatum: 05.01.09 Neueste Beiträge
Hi,
I am developing a custom portlet that behaves differently in sites with staging from sites without staging.
I need a boolean or IF condition to check staging is enabled or not.
Thanks in advance.
I am developing a custom portlet that behaves differently in sites with staging from sites without staging.
I need a boolean or IF condition to check staging is enabled or not.
Thanks in advance.
Mika Koivisto, geändert vor 11 Jahren.
RE: How to check whether staging is enabled?
Liferay Legend Beiträge: 1519 Beitrittsdatum: 07.08.06 Neueste Beiträge
You could check from the current Group with isStaged() to see if it is staged or isStagingGroup() to see if you are in the staging group.