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 know if a group belongs to specific LayoutSetPrototype
Hi! I need to know if a group belongs to specific LayoutSetPrototype. I saw a relation first from a group with a LayoutSet. But after that I can not find a specific relation between LayoutSetPrototype and LayoutSet. I saw that use uuid, but this field is only used in group site type, not in layoutSetPrototype group type. In resume I need to find is a specific group belongs to a LayoutSetPrototype. Thanks!
Hi ,You can get the LayoutSetProtype from group by
LayoutSet layoutSet = group.getPrivateLayoutSet() or group.getPublicLayoutSet();
boolean hasLayoutSetPrototype = layoutSet.getLayoutSetPrototypeLinkEnabled();
long layoutSetPrototypId = layoutSet.getLayoutSetPrototypeId();
Thanks Mohammed! I will try it.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™