共用方式為


如何套用Windows Azure Pack 授權網站自訂主題

 

適用于:Windows Azure Pack

範例主題套件隨附Windows Azure Pack 開發人員套件,示範可自訂的租使用者入口網站區域。 Contoso 主題套件會顯示影像和樣式,與名為 Contoso 的虛構主控公司商標一致。 下列指示示範如何將 Contoso 主題套件套用至測試Windows Azure Pack 環境中的授權網站。

如何將 Contoso 自訂主題套用至 Windows Azure Pack 授權網站

  1. 登入您已部署Windows Azure Pack 授權網站的電腦。

  2. 從 Contoso 主題套件,從 Contoso-Theming-Kit\MgmtSvc-AuthSite\Content 複製 Content 資料夾的內容,並貼到授權月臺安裝的 Content 資料夾中。 授權網站 內容 資料夾通常位於 C:\inetpub\MgmtSvc-AuthSite\Content。 覆寫 Content 資料夾中任何既有的檔案。

  3. 開啟 \MgmtSvc-AuthSite\Views\Login\index.cshtml 檔案,並使用下列內容更新 區段:

    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
        <meta charset="utf-8" />
        <title>@AuthPortalControllerResources.PortalBranding</title>
        <link href="@Context.GetContentUrl("~/favicon.ico")" rel="icon" type="image/x-icon" />
        @(this.ContentTags<JQueryCss>())
        @(this.ContentTags<CoreCss>())
        @(this.ContentTags<LoginCss>())
        @(this.ContentTags<ThirdPartyThemeCss>())
    </head>
    
  4. 開啟命令提示字元並執行 iisreset 以清除記憶體快取。

  5. 流覽至 的租使用者 https://localhost:30081 管理入口網站,以檢視更新的主題。 如果快取舊的內容,您可能必須重新整理瀏覽器視窗。

另請參閱

Windows Azure Pack 自訂主題