Forums de discussion

Setup Personal site for users by default

thumbnail
Dmitry Fengoff, modifié il y a 11 années.

Setup Personal site for users by default

New Member Publications: 16 Date d'inscription: 19/03/12 Publications récentes
Hi all

I want to set up for all new users some template by default automaticaly. I mean user profile -> Personal site -> Public Pages -> (Community site for example).
I came up hook and model listener for user creating where i'll set template but I think it's not good way.



I use liferay 6.1
thumbnail
Hitoshi Ozawa, modifié il y a 11 années.

RE: Setup Personal site for users by default

Liferay Legend Publications: 7942 Date d'inscription: 24/03/10 Publications récentes
Do you want to apply the template automatically when you choose to create a public/private page?

Or
Do you want to create a new public/private page using template when a user is created?
thumbnail
Dmitry Fengoff, modifié il y a 11 années.

RE: Setup Personal site for users by default

New Member Publications: 16 Date d'inscription: 19/03/12 Publications récentes
Hi. Thanks for reply.
I want to create new public page using template when a user is created
Jakub Trojanek, modifié il y a 11 années.

RE: Setup Personal site for users by default

New Member Publications: 7 Date d'inscription: 12/07/12 Publications récentes
Hi, I'd need the same.
Strange, that it seems quite obvious functionality, but it doesn't look like Liferay supports the concept of default private site template, despite having the ability to set private site template for a particular user...
thumbnail
Harish Kumar, modifié il y a 11 années.

RE: Setup Personal site for users by default

Expert Publications: 483 Date d'inscription: 31/07/10 Publications récentes
Hi

Looks like you can achieve the required functionality by using below properties specified portal-ext.properties file -

##
## Default User Public Layouts
##

    #
    # If the properties "layout.user.public.layouts.enabled" and
    # "layout.user.public.layouts.auto.create" are both set to true, then users
    # will have public layouts and they will be automatically created. The
    # settings below are used for the creation of the initial public pages.
    #
    # If you need to add more than one page, set the property
    # "default.user.public.layouts.lar" to specifiy a LAR file instead.
    #
    # For even more complex behavior, override the addDefaultUserPublicLayouts
    # method in com.liferay.portal.events.ServicePreAction.
    #

    #
    # Set the name of the public layout.
    #
    default.user.public.layout.name=Welcome

    #
    # Set the layout template id of the public layout.
    #
    default.user.public.layout.template.id=2_columns_ii

    #
    # Set the portlet ids for the columns specified in the layout template.
    #
    default.user.public.layout.column-1=82,3
    default.user.public.layout.column-2=33
    default.user.public.layout.column-3=
    default.user.public.layout.column-4=

    #
    # Set the friendly url of the public layout.
    #
    default.user.public.layout.friendly.url=/home

    #


HTH
Jakub Trojanek, modifié il y a 11 années.

RE: Setup Personal site for users by default

New Member Publications: 7 Date d'inscription: 12/07/12 Publications récentes
Thanks, this partialy solves the case, but this method is:
- static and predfined - I want my admin to be able to set and modify the default tempate from GUI
- limited - I want to setup portlets with specific preferences set for my template, and disallow users to configure (e.g. want to predefine two IFrame instances pointing to diferent locations in my intranet)
thumbnail
Juan Gonzalez P, modifié il y a 11 années.

RE: Setup Personal site for users by default

Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
In that case, you can set users page adding a site template to a user group and then adding those users to the user group. Best way to achieve that AFAIK.
Jakub Trojanek, modifié il y a 11 années.

RE: Setup Personal site for users by default

New Member Publications: 7 Date d'inscription: 12/07/12 Publications récentes
Thanks, I also considered that approach, but then the site gets created just once, for UserGroup, not for each User, and normal users cannot modify or configure it.
That's fine for some portlets I want to limit permissions to, but at the same time I'd like to allow users to modify layout and placement for their "site instance".

Anyway, maybe that's already far enough from obvious, and rightfully qualifies for a hook...
thumbnail
Juan Gonzalez P, modifié il y a 11 années.

RE: Setup Personal site for users by default

Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
With user group templates you can define the "area" where users can modify the layout etc. It's a new feature in 6.1
Jakub Trojanek, modifié il y a 11 années.

RE: Setup Personal site for users by default

New Member Publications: 7 Date d'inscription: 12/07/12 Publications récentes
The "Page customizations" setting for the layout columns? I forgot about that - maybe that's the way to do it. I'll see if it solves the problem.
Thank you!
thumbnail
gnp present, modifié il y a 6 années.

RE: Setup Personal site for users by default

Junior Member Publications: 54 Date d'inscription: 09/06/10 Publications récentes
Hi..In liferay 7 ga 4 i created sites with site templates for both public and private pages to have default pages for all users, and put lar file in portal.ext-properties like in documentation. I setup ON for propagation. All is ok and new users created have pages which i configured in lar file, but propagation works just in sites in portal and not works for lar files. Can you give me some help please?
Jill Garland, modifié il y a 6 années.

RE: Setup Personal site for users by default

New Member Envoyer: 1 Date d'inscription: 08/11/16 Publications récentes
Can you point me to the documentation for doing this. It is exactly what we need.