简体   繁体   English

Azure B2C - 布局定制 -

[英]Azure B2C - Layout Customization -

I am trying figure out how Azure B2C layouts are working.我正在尝试弄清楚 Azure B2C 布局是如何工作的。 I have my custom layout that is based on below code:我有基于以下代码的自定义布局:

<!DOCTYPE html>
<html>
<head>
    <title>My Product Brand Name</title>
</head>
<body>
    <div id="api"></div>
</body>
</html>

How to customize that "Welcomes, Sign in with your email address? For example how to change that to the social_intro? How to change sentence to simple another:)?如何自定义“欢迎,使用您的 email 地址登录?例如,如何将其更改为 social_intro?如何将句子更改为简单的另一个:)?

sign in prnt scrn登录 prnt scrn

you can download the translation files from the portal UI.您可以从门户用户界面下载翻译文件。

Home > Azure AD B2C |首页 > Azure 广告B2C | User Flows > (your flow) > Languages用户流 >(您的流)> 语言

Then you can click a Language (English for instance) and then under Page-level resource files, choose a page and then "Download defaults (en)".然后您可以单击一种语言(例如英语),然后在页面级资源文件下,选择一个页面,然后选择“下载默认值(en)”。 The file is a JSON file that you can edit.该文件是您可以编辑的 JSON 文件。

{
  "ElementType": "UxElement",
  "ElementId": null,
  "StringId": "local_intro_generic",
-  "Override": false,
-  "Value": "Sign in with your {0}"
+  "Override": true,
+  "Value": "Your custom intro"
}

Save the file and then upload it on the same panel where you downloaded it from.保存文件,然后将其上传到您下载它的同一面板。

In order to customize the “Welcomes, Sign in with your email address”.为了自定义“欢迎,使用您的 email 地址登录”。 You can go through the following steps: You need to login Azure portal>Azure AD B2C> Go to your tenant:您可以通过以下步骤go:您需要登录Azure门户>Azure AD B2C>Go到您的租户:

Image 1图片 1

Then Select the policies on left side and under policies select “User Flow” :然后 Select 左侧的政策和政策 select “用户流”

Image 2图 2

In User flow, select the policy which needs to be changed like this:在用户流程中,select 需要更改的策略如下:

Image 3图 3

Then click on “Download”然后点击“下载”

Image 4图 4

Now open the downloaded file.现在打开下载的文件。 You can search for the text that you want to modify and replace it with the desired text.您可以搜索要修改的文本并将其替换为所需的文本。

You can save the file and then upload it to your tenant.您可以保存文件,然后将其上传给您的租户。 You will be able to see the changes.您将能够看到更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM