Liferay: How can all new users get equal page structures

Categories: Liferay

A little how-to for Liferay dev:

1) Define page structures for that area (public or private) you want to have equal.
2) Export them into a lar file

->do not export Groups / Roles otherwise you can’t remove groups on your system that
existed on your system when the lar file was exported. The will be recreated every
time when a new user is created.

3) Add configuration to your portal-ext.properties:

default.user.public.layouts.lar=${liferay.home}/<folder-for-your-template>/default.public.user.public.lar
layout.user.public.layouts.enabled=true
layout.user.public.layouts.modifiable=true
layout.user.public.layouts.auto.create=true

or the same for private layouts…

Restart server and be happy 😉

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *