User Group Sites
With user group sites, you can create pages that are added automatically to each member’s personal site. These pages are organized into two page sets, My Profile (public) and My Dashboard (private), just like personal sites. If users belong to multiple user groups, all pages from those groups are also added to their sites.
By default, inherited pages can only be edited from the user group site and cannot be edited from a personal site. If needed, user group administrators can define customizable page areas so users can add and configure widgets in a page.
User group sites can be designed manually or using a site Template.
For Liferay 7.4 U22+ and GA22+, new Liferay installations include a release feature flag that disables the creation of private pages, including My Dashboard pages. To manually create custom dashboard pages for a user group, private pages must be enabled for your Liferay system. See Enabling Private Pages for more information.
Alternatively, when private pages are disabled, you can add My Dashboard pages using a site template. Pages added to the template and applied to the My Dashboard page set are treated as private pages.
Designing User Group Sites Manually
-
Open the Global Menu (), go to the Control Panel, and click User Groups.
-
Click Actions () for the desired group and select Manage Pages.
-
Note
While private pages are disabled, all pages added in this way are added to the My Profile page set. You must enable and create private pages to add pages to the My Dashboard set.
-
(Optional) Click the Site Menu () to access additional site applications and configuration options.
Once pages are added to a user group site, you can view them via the User Groups application. Click the Actions button () for the desired group and select Go to Profile Pages or Go to Dashboard Pages.
Using Site Templates
-
Open the Global Menu (), go to the Control Panel, and click User Groups.
-
Click Actions () for the desired group and select Edit.
-
Use the My Profile and My Dashboard drop-down menus to select a site template for each page set.
-
Determine whether to enable propagation of changes from the site templates.
NoteWhen enabled, changes in the template are automatically propagated to the user group site. If you disable this option but enable it again later, the template’s pages are copied to the Users’ sites, overwriting any changes made.
-
Click Save.
Once saved, the template’s pages are added to each group member’s personal site under their My Profile or My Dashboard page sets.
Legacy User Group Sites Behavior
There is no impact on performance for inheritance of user group site pages, even with millions of users. Versions of Liferay Portal and Liferay DXP before 7.0, however, required user group pages be copied to each User’s personal site.
If you’re on Liferay DXP 7.2 and must keep that behavior, enable it by adding the following line to your portal-ext.properties
file:
user.groups.copy.layouts.to.user.personal.site=true
This property was removed in Liferay DXP 7.3.
When this property is set to true
, template pages are copied once to a user’s personal site and can be modified if the Allow Site Administrators to Modify the Pages Associated with This Site Template option is enabled. Changes to template pages only affect users added to the group afterward. Removing a user from a group deletes the pages, while re-adding the user copies them again. Changes to a site template only propagate to existing members if Enable propagation of changes from the Site Template is checked.