0%

【SharePoint 2013】開啟以不同使用者登入選項

在SharePoint 2013中,預設沒有切換使用者的選項

https://1.bp.blogspot.com/-3Fzzh6KvIog/UWvXRQFmtgI/AAAAAAAACYE/M96nwlEF1gs/s1600/111.png

叫出來的方法如下:

  • 先找到以下路徑開啟 \15\TEMPLATE\CONTROLTEMPLATES\Welcome.ascx
    https://2.bp.blogspot.com/-XTar0tN4fs4/UWvY1NbOs2I/AAAAAAAACYQ/IZLGfEJyrOA/s1600/11.png
  • 用編輯器打開,並找到ID為 ID_RequestAccess的控制項
    https://2.bp.blogspot.com/-foGebgpfQQU/UWvZvzG7kxI/AAAAAAAACYg/Ft0kIEB-Ejg/s1600/11.png
  • 在該控制項前面加入以下程式碼
    1
    2
    3
    4
    5
    6
    <SharePoint:MenuItemTemplate  runat="server"  ID="ID_LoginAsDifferentUser"
    Text="<%$Resources:wss,personalactions_loginasdifferentuser%>"
    Description=" <%$Resources:wss,personalactions_loginasdifferentuserdescription%>"
    MenuGroupId="100"
    Sequence="100"
    UseShortId="true" />
    https://3.bp.blogspot.com/-FDGUOFCxbhs/UWvarNajT7I/AAAAAAAACYs/iLMMk-yB1tw/s1600/11.png
  • 大功告成
    https://4.bp.blogspot.com/-uFjLjbAQEO0/UWva_j6HqfI/AAAAAAAACY0/2ELRqrG5QS8/s1600/11.png