【问题标题】:Custom Windows Azure Pack自定义 Windows Azure 包
【发布时间】:2015-12-21 04:14:27
【问题描述】:

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

此时我对 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

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

【问题讨论】:

    标签: azure-pack


    【解决方案1】:

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

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

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

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

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

    希望答案有所帮助, 很高兴为您提供帮助 - 真诚的,CB

    【讨论】:

      猜你喜欢
      • 2012-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-04
      • 1970-01-01
      • 1970-01-01
      • 2016-05-26
      相关资源
      最近更新 更多