2011-11-09 66 views

回答

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&amp;companyId=10112&amp;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&amp;companyId=10112&amp;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&amp;companyId=10112&amp;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&amp;companyId=10112&amp;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> 

希望這有助於!

相關問題