Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
Shravan A
How to check whether staging is enabled?
30. April 2013 04:42

Shravan A

Rang: Junior Member

Nachrichten: 29

Eintrittsdatum: 5. Januar 2009

Neue Beiträge


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
RE: How to check whether staging is enabled?
7. Mai 2013 16:50

Mika Koivisto

Rang: Liferay Legend

Nachrichten: 1518

Eintrittsdatum: 7. August 2006

Neue 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.