-
Type:
Improvement
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 7.0.X EE
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Based on the sources the 'PageSet' layout type is a hard one to find.
Source: liferay-dxp-digital-enterprise-src-7.0-sp6-20171010144253003.zip
The Layout object contains several methods which return their types:
isTypeControlPanel()
isTypeEmbedded()
isTypeLinkToLayout()
isTypePanel()
isTypePortlet()
isTypeSharedPortlet()
isTypeURL()
Unfortunately the "PageSet" check/boolean is missing.
Every Layout has an LayoutTypeController which in this case resolves to the 'NodeLayoutTypeController' which return the LAYOUT_TYPE_NODE to the database ("node").
I think it should be possible to also use a method layout.isTypePageSet() or layout.isTypeNode()
Currently this is not the case. Can this be added to the source?