Foren

Home » Liferay Portal » English » 3. Development

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

Shravan A

Rang: Junior Member

Nachrichten: 29

Eintrittsdatum: 5. Januar 2009

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

Mika Koivisto

LIFERAY STAFF

Rang: Liferay Legend

Nachrichten: 1498

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.