2012-08-22 36 views
1

我是Liferay的新手,我創建了兩個UserGroups - Grp1(用戶a1,b1,c1)和Grp2(用戶a2,b2,c2)。如何管理liferay中的頁面?

Groupwise會創建一些公共和私人網頁,將Grp1任務與Grp2區分開來。

  1. 我希望用戶a2,b2,c2有自己的私人頁面,只有他們可以查看。
  2. 當我通過用戶a2登錄時,默認情況下會顯示liferay的公共頁面,並且在轉至用戶的(a2)公共和專用頁面可用。

    不能登錄本身用戶的公共和私人頁面被查看,而不是liferay的默認頁面?

  3. GROUP LEVELUSER LEVEL public &私人網頁有什麼不同?

我在組級別(Grp2)創建了公共和私人頁面,所有頁面對a2,b2,c2都是可見的。在添加頁面(a2)時,它表現爲專用頁面,只有a2可以查看它。

回答

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.events.post在你的鉤子,幷包括DefaultLandingPageActionCustomLandingPageAction類。
  • 這是創建Custom Landing Page的好資源。

又如何GROUP級和用戶級公共&專用頁面有什麼不同?

  • 我想你問用戶組級別(而不是僅僅集團)和用戶級別之間的差異。
  • 請參見User Group Sites在Liferay的用戶指南,從截面一些相關的摘錄:

    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. 
    

希望這將有一定的幫助。

+0

嘿prakash謝謝你的回覆。
轉到要刪除時,我添加'layout.user.private.layouts.enabled = false
layout.user.private.layouts.enabled = false' – happy