【问题标题】:How to manage pages in liferay?如何管理liferay中的页面?
【发布时间】:2012-08-22 05:40:03
【问题描述】:

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

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

  1. 我希望用户 a2、b2、c2 拥有自己的私有页面,只有他们可以查看。

  2. 当我通过用户say a2登录时,默认情况下会查看liferay的公共页面,并且在GO TO中用户的(a2)公共和私人页面可用。

    不能在登录时查看用户的公共和私人页面而不是liferay的默认页面吗?

  3. GROUP LEVELUSER LEVEL 公共和私人页面有何不同?

我在组级别 (Grp2) 上创建了公共和私有页面,所有页面对 a2、b2、c2 都是可见的。添加页面 (a2) 时,它表现为私有页面,只有 a2 可以查看它。

【问题讨论】:

    标签: liferay webpage


    【解决方案1】:

    我希望用户 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.
      

    希望这会有所帮助。

    【讨论】:

    • 嘿 prakash 感谢您的回复。
      当我添加 'layout.user.private.layouts.enabled=false
      layout.user.private.layouts.enabled= 时,转到已删除假'
    猜你喜欢
    • 1970-01-01
    • 2021-06-14
    • 2018-05-11
    • 1970-01-01
    • 2015-09-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-17
    相关资源
    最近更新 更多