0

我希望有人可以帮助我编写下面的代码。

目前我对 Windows Azure Pack 有一点问题,我想自定义 MgmtSvc-AuthSite 和 MgmtSvc-TenantSite 来更改文本,但例如使用 Chrome/Firefox,我可以在 HTML 中看到代码,例如:

<div class="kt-introduction">
<h1>Unlimited Possibilities</h1>
<div class="kt-offering-value">
    <span>The future of cloud computing is @ your fingertips!</span>
    <ul>
        <li>Rich and powerful services</li>
        <li>Effortless management experience</li>
        <li>Open and flexible plataform</li>
        <li>Quickly build, deploy and manage applications across a global network</li>
    </ul>
</div>

但是当我想改变这个文本时,我只看到这个:

@using Microsoft.WindowsAzure.Server.CommonPortalStrings;
<div class="kt-hero">
    <img src="/Content/Images/hero.png" alt="Hero"/>
</div>

<div class="kt-main-content-area">
    <div class="kt-introduction">
    <h1>@TenantPortalControllerResources.UnlimitedPossibilities</h1>
        <div class="kt-offering-value">
      <span>@TenantPortalControllerResources.CloudComputingWelcomeMessage</span>
        <ul>
            <li>@TenantPortalControllerResources.CloudServicesBenefits</li>
            <li>@TenantPortalControllerResources.CloudManagementWelcomeMessage</li>
            <li>@TenantPortalControllerResources.FlexiblePlatformBenefit</li>
            <li>@TenantPortalControllerResources.DeployApplicationQuickly</li>
        </ul>
    </div>
</div>

所以...我花了好几个小时试图找到更改代码的源,但我失败了...在 MSDN 中我认为使用 powershell 命令

Unprotect-MgmtSvcConfiguration -namespace AuthSite
Unprotect-MgmtSvcConfiguration -namespace TenantSite

但它不起作用,所以我没有想法!...

4

1 回答 1

0

我可以理解您的问题,更改 HTML 不会直接更改内容,因为站点已编译并且主题选项非常有限。关于如何主题化您的客户 Azure 包门户有一个非常好的文档。

https://msdn.microsoft.com/en-us/library/dn528500.aspx

我在公司内部使用 Azure Pack 来托管内部网站,我使用登录页面来吸引用户并显示有关服务的信息,并为他们提供指向管理门户的链接。我从不共享管理门户链接,我只共享登录页面链接,因为用户将开始看到登录页面并了解当他们单击链接时需要做什么。

我从你的文字中得到了这个:),

我在登陆页面上也有类似的东西。

希望答案有所帮助, 乐于助人-真诚的,CB

于 2015-12-16T00:48:42.907 回答