留言板

Layout fixo para páginas públicas e privadas de usuários.

thumbnail
Brunno Figueirôa Goldstein,修改在12 年前。

Layout fixo para páginas públicas e privadas de usuários.

Junior Member 帖子: 51 加入日期: 11-5-5 最近的帖子
Olá a todos,
gostaria de definir um layout para as páginas privadas e públicas de usuários logados. Como eu posso realizar isso?

Existe alguma forma de forçar no properties.ext?

Abraços!
thumbnail
Thiago Leão Moreira,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Liferay Legend 帖子: 1449 加入日期: 07-10-10 最近的帖子
Boa tarde Brunno,

Você pode usar as propriedades abaixo para fazer essas configurações:


##
## 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 for 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

##
## 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 for 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

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

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

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

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

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

thumbnail
Brunno Figueirôa Goldstein,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Junior Member 帖子: 51 加入日期: 11-5-5 最近的帖子
Obrigado Thiago!
Desculpe a demora na resposta.

Abraços!
thumbnail
Brunno Figueirôa Goldstein,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Junior Member 帖子: 51 加入日期: 11-5-5 最近的帖子
Thiago,
não tem como eu setar algum valor para usar um template previamente criado?

Por exemplo, eu criei um modelo de site para as páginas públicas e privadas de usuários. Gostaria de usá-las como template padrão para novos usuários. Tem como fazer isso?

Abraços!
thumbnail
Thiago Leão Moreira,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Liferay Legend 帖子: 1449 加入日期: 07-10-10 最近的帖子
Dae Brunno,

Não dá para fazer isso sem customização.
thumbnail
Brunno Figueirôa Goldstein,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Junior Member 帖子: 51 加入日期: 11-5-5 最近的帖子
Thiago,
seria que ser um hook que seria chamado em toda criação de usuário?
thumbnail
Thiago Leão Moreira,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Liferay Legend 帖子: 1449 加入日期: 07-10-10 最近的帖子
Brunno, você já tentou usar as propriedades que eu te passei? Elas são como um template. Ainda há a possibilidade de importar um lar toda vez que criar um usuário novo.
thumbnail
Brunno Figueirôa Goldstein,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Junior Member 帖子: 51 加入日期: 11-5-5 最近的帖子
Eu vi, olhei o hook do sevencogs e percebi que, para o layout, as chamadas são exatamente as mesmas.

Como faço para exportar um template de site para um .lar? Isso facilitaria muito o trabalho.

Obrigado pela ajuda Thiago!
thumbnail
Thiago Leão Moreira,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Liferay Legend 帖子: 1449 加入日期: 07-10-10 最近的帖子
Você não consegue exportar um template mas sim uma comunidade. Minha sugestão é que você crie uma comunidade do jeito que você quer que as páginas do teu usuário seja e dai exporte.
Vou te falar que em teoria isso deve funcionar mas eu pessoalmente nunca fiz. Alguém ai já fez?
thumbnail
Brunno Figueirôa Goldstein,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Junior Member 帖子: 51 加入日期: 11-5-5 最近的帖子
Hahahaha, show! Funcionou perfeitamente, muito obrigado!emoticon
thumbnail
Thiago Leão Moreira,修改在12 年前。

RE: Layout fixo para páginas públicas e privadas de usuários.

Liferay Legend 帖子: 1449 加入日期: 07-10-10 最近的帖子
Show!