掲示板

Add custom application in private page of new user

11年前 に John Doe によって更新されました。

Add custom application in private page of new user

New Member 投稿: 13 参加年月日: 12/08/16 最新の投稿
Hi,

I am trying to create new user with new role and add my custom portlet to his private page.
I have created new role (type regular). Next I have created new user and assigned to him new role. Then I have deployed a simple test portlet and with the administrator account I have changed the permissions for the portlet (gave new role Add To Page, View & Configure permission). Now when I logg in as the new user I can see & configure the new portlet, but cannot add it to private/public page! I even cannot see him (and the new category I have set for portlet) on list of available applications. What am I missing????

Thanks.

edit: OK, so it is about the category. If I put my portlet in category.sample - I can see it in Sample category. If I put it in my custom category - I cannot see it. How can I give proper permissions to my custom categories? Is there any solution?
thumbnail
11年前 に Pranay R Patadiya によって更新されました。

RE: Add custom application in private page of new user

Regular Member 投稿: 177 参加年月日: 10/02/23 最新の投稿
you can use below property to add portlet on private page with custom layout and theme.

##
## Default User Private Layouts
##

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

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

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

    #
    # Set the portlet ids for the columns specified in the layout template.
    #
    default.user.private.layout.column-1=82,23,11
    default.user.private.layout.column-2=29,8
    default.user.private.layout.column-3=
    default.user.private.layout.column-4=

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

    #
    # Set the regular theme id for the private layout.
    #
    #default.user.private.layout.regular.theme.id=classic

    #
    # Set the regular color scheme id for the private layout.
    #
    #default.user.private.layout.regular.color.scheme.id=01

    #
    # Set the wap theme id for the private layout.
    #
    #default.user.private.layout.wap.theme.id=mobile

    #
    # Set the wap color scheme for the private layout.
    #
    #default.user.private.layout.wap.color.scheme.id=01

    #
    # Specify a LAR file that can be used to create the user private layouts. If
    # this property is set, the previous layout properties will be ignored.
    #
    #default.user.private.layouts.lar=${liferay.home}/deploy/default_user_private.lar


Thanks,
Pranay