如何在liferay中管理页面?

时间:2012-08-22 05:40:04

标签: liferay webpage

我是Liferay的新手我创建了两个UserGroups - Grp1(用户a1,b1,c1)和Grp2(用户a2,b2,c2)。

Groupwise创建了一些公共和私人页面,它们将Grp1任务与Grp2区分开来。

  1. 我希望用户a2,b2,c2拥有自己的私人网页,只有他们才能查看。
  2. 当我通过用户说a2登录时,默认情况下会查看liferay的公共页面,并且在转到用户的(a2)公共和私人页面可用。

    无法登录本身用户查看公共和私人页面而不是liferay的默认页面?

  3. GROUP LEVELUSER LEVEL如何公开&私人页面不同?
  4. 我在公共和私人的组级别(Grp2)创建了页面,所有页面都对a2,b2,c2可见。在添加页面(a2)时,它表现为私有页面,只有a2可以查看它。

1 个答案:

答案 0 :(得分:2)

  

我希望用户a2,b2,c2拥有自己的私人网页,只有他们才能查看。

  • 然后使用用户级私有页面。您可以使用网址GO TO
  • http://localhost/user/a2/home菜单中看到该内容
  • 将用户添加到liferay时,将自动创建这些页面。您可以通过修改portal.properties中的以下属性来控制这些页面的创建:

    layout.user.private.layouts.enabled=true
    layout.user.private.layouts.auto.create=true
    

    您还可以查看portal.properties中的Default User Private Layouts部分,了解更多信息。

  • 这些页面仅对用户可见,只有用户可以完全控制它。
  • 有关此问题的更多信息,请参阅Liferay用户指南中有关User personal site
  • 的部分   -
  

登录时无法查看用户的公共和私人页面,而不是liferay的默认页面?

  • 为此,您可以创建一个login-post-action-hook。
  • 您需要修改属性:login.events.post,并在DefaultLandingPageAction行中添加CustomLandingPageAction类。
  • 这是创建Custom Landing Page的好资源。
  

GROUP LEVEL和USER LEVEL如何公开&私人页面不同?

  • 我认为您在询问用户组级别(而不仅仅是组)和用户级别之间的区别。
  • 请参阅Liferay用户指南中的User Group Sites部分,该部分的相关摘录:

    Liferay allows users to each have a personal site consisting of public and
    private pages. Permissions can be granted to allow users to customize their
    personal sites at will. Originally, the default configuration of those pages
    could only be determined by the portal administrator through the
    portal-ext.properties file and, optionally, by providing the configuration in
    a LAR file. You can still configure it like this but it isn’t very flexible or
    easy to use.
    
    By using User Group Sites, portal administrators can add pages to the personal
    sites of all the users who belong to the site in an easy and centralized way.
    All the user group site’s public pages are shown as part of the user’s public
    personal site. All the user group site’s private pages are shown as part of the
    user’s private site. If a user belongs to several user groups, all of its pages
    are made part of his public and private site. In an educational institution’s
    portal, for example, teachers, staff and students could get different default
    pages and applications on their personal sites.
    

希望这会有所帮助。

相关问题