1
A
回答
2
「當前用戶」portlet實際上只是一個已重命名的「Web Content Display」portlet。因此,如果您將「Web Content Display」Portlet添加到您的頁面並設置,然後找到名爲「Welcome Login」的Web內容(它的ID爲10232,但這對您可能會有所不同),並將其設置爲要顯示的內容將會恢復。或者,您可以添加新的一段網頁內容與下面的代碼:
<p><style type="text/css"> .loginuser { margin-top:5px; width:100%; display:block; text-decoration:none; padding: 2px; padding-bottom: 10px; } .loginuser h2 { margin:0; font-size:14px; /*text-align:center;*/ } .loginuser a { display:block; padding-left: 20px; margin-left: 95px; margin-top: 2px; } .loginuser img { padding:2px; margin-right: 5px; } .loginuser:hover { background-color: #CED9E2; /*cursor:pointer;*/ } .express_login { background: url("/html/icons/login.png") no-repeat; } .public_pages { background: url("/html/themes/classic/images/common/view_tasks.png") no-repeat; } </style></p>
<form name="loginadmin" method="post" action="/web/guest/home">
<input type="hidden" value="58" name="p_p_id" /> <input type="hidden" value="1" name="p_p_lifecycle" /> <input type="hidden" value="view" name="p_p_mode" /> <input type="hidden" value="maximized" name="p_p_state" /> <input type="hidden" value="/login/login" name="_58_struts_action" /> <input type="hidden" value="[email protected]" name="_58_login" /> <input type="hidden" value="bruno" name="_58_password" />
<div title="Login: [email protected], Password: bruno" class="loginuser">
<div style="float: left; padding-right: 4px;" class="user-profile-image"><img width="80" class="avatar" alt="" src="/image/user_portrait?screenName=bruno&companyId=10112&t=1228845375900" /></div>
<h2>Bruno (Admin)</h2>
<div>The admin has full control over the entire portal, allowing modification and creation of users, communitities, and roles. <a class="public_pages" href="/web/bruno">View bruno's public page</a> <a onclick="document.loginadmin.submit();return false;" class="express_login" href="#">Login as bruno</a></div>
</div>
</form>
<form name="loginrich" method="post" action="/web/guest/home">
<input type="hidden" value="58" name="p_p_id" /> <input type="hidden" value="1" name="p_p_lifecycle" /> <input type="hidden" value="view" name="p_p_mode" /> <input type="hidden" value="maximized" name="p_p_state" /> <input type="hidden" value="/login/login" name="_58_struts_action" /> <input type="hidden" value="[email protected]" name="_58_login" /> <input type="hidden" value="richard" name="_58_password" />
<div title="Login: [email protected], Password: richard" class="loginuser">
<div style="float: left; padding-right: 4px;" class="user-profile-image"><img width="80" class="avatar" alt="" src="/image/user_portrait?screenName=richard&companyId=10112&t=1228845375871" /></div>
<h2>Richard Publisher</h2>
<div>Richard has article submission rights for the content management system. <a class="public_pages" href="/web/richard">View richard's public page</a> <a onclick="document.loginrich.submit();return false;" class="express_login" href="#">Login as richard</a></div>
</div>
</form>
<form name="loginmichelle" method="post" action="/web/guest/home">
<input type="hidden" value="58" name="p_p_id" /> <input type="hidden" value="1" name="p_p_lifecycle" /> <input type="hidden" value="view" name="p_p_mode" /> <input type="hidden" value="maximized" name="p_p_state" /> <input type="hidden" value="/login/login" name="_58_struts_action" /> <input type="hidden" value="[email protected]" name="_58_login" /> <input type="hidden" value="michelle" name="_58_password" />
<div title="Login: [email protected], Password: michelle" class="loginuser">
<div style="float: left; padding-right: 4px;" class="user-profile-image"><img width="80" class="avatar" alt="" src="/image/user_portrait?screenName=michelle&companyId=10112&t=1228845375823" /></div>
<h2>Michelle Editor</h2>
<div>Michelle has control over the staging and layout of all articles as well as publishing rights for workflow and the content management system. <a class="public_pages" href="/web/michelle">View michelle's public page</a> <a onclick="document.loginmichelle.submit();return false;" class="express_login" href="#">Login as michelle</a></div>
</div>
</form>
<form name="loginjohn" method="post" action="/web/guest/home">
<input type="hidden" value="58" name="p_p_id" /> <input type="hidden" value="1" name="p_p_lifecycle" /> <input type="hidden" value="view" name="p_p_mode" /> <input type="hidden" value="maximized" name="p_p_state" /> <input type="hidden" value="/login/login" name="_58_struts_action" /> <input type="hidden" value="[email protected]" name="_58_login" /> <input type="hidden" value="john" name="_58_password" />
<div title="Login: [email protected], Password: john" class="loginuser">
<div style="float: left; padding-right: 4px;" class="user-profile-image"><img width="80" class="avatar" alt="" src="/image/user_portrait?screenName=john&companyId=10112&t=1228845375887" /></div>
<h2>John Regular User</h2>
<div>John is a user with minimum rights within the portal.
<div><a class="public_pages" href="/web/john">View john's public page</a> <a onclick="document.loginjohn.submit();return false;" class="express_login" href="#">Login as john</a></div>
</div>
</div>
</form>
希望這有助於!
相關問題
- 1. 用Django Rest Framework返回當前用戶
- 2. 如何讓當前線程等待函數在java中返回?
- 3. Django模型:從當前登錄用戶返回用戶名
- 4. 返回當前用戶以外的所有流星用戶?
- 5. 如果用戶不是當前用戶,EF將不會返回用戶?
- 6. 如何返回當前對象?
- 7. 當用戶放棄R時返回當前數據R
- 8. 的Rails讓訪問當前用戶
- 9. Liferay - 自動登錄掛鉤/ portlet不會註銷當前用戶
- 10. 當用戶未被授權查詢時,如何讓Breeze返回HttpResponse 401?
- 11. 如何返回當前文化用戶在PC中使用的內容
- 12. 如何讓當前用戶登錄到apache領域?
- 13. 如何讓核心獲得當前的用戶信息?
- 14. 如何讓我當前的用戶登錄在MS Access窗體
- 15. 如何讓模板標籤中的當前用戶?
- 16. 如何讓當前用戶登錄MVC 3?
- 17. 如何讓用戶將iframe的當前位置加入書籤?
- 18. Odoo 9.0c:如何讓qweb報告中的當前用戶?
- 19. 如何讓JQuery返回View?
- 20. 如何讓MongoCollectoin返回java.sql.Timestamp?
- 21. 如何讓0返回true?
- 22. 返回當前$此一類
- 23. DateTime.ParseExact返回當前日期
- 24. PHP:返回當前URL
- 25. 當他們不是當前用戶時,如何在查詢結果中動態返回用戶名?
- 26. 如何讓Google地圖搜索僅返回當前可見區域的結果?
- 27. 如何編寫web腳本以返回當前用戶的故障單?
- 28. 如何讓用戶當前用戶作爲參數水晶報表?
- 29. 如何讓certmgr爲所有用戶而不是當前用戶添加pfx?
- 30. REST服務只返回當前用戶相關資源