Skip to content

Commit 3535d0e

Browse files
authored
Merge pull request #166347 from msewaweru/javascript-page-layout-work
Made edits to the article
2 parents 4cb892f + e836fd1 commit 3535d0e

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

articles/active-directory-b2c/TOC.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
- name: Customize the UI with HTML template
263263
displayName: content definitions
264264
href: customize-ui-with-html.md
265-
- name: JavaScript and page layouts
265+
- name: Enable JavaScript and page layouts
266266
href: javascript-and-page-layout.md
267267
- name: Embedded sign-in with iframe
268268
displayName: iframe

articles/active-directory-b2c/javascript-and-page-layout.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.subservice: B2C
1616
zone_pivot_groups: b2c-policy-type
1717
---
1818

19-
# JavaScript and page layout versions in Azure Active Directory B2C
19+
# Enable JavaScript and page layout versions in Azure Active Directory B2C
2020

2121
[!INCLUDE [active-directory-b2c-choose-user-flow-or-custom-policy](../../includes/active-directory-b2c-choose-user-flow-or-custom-policy.md)]
2222

@@ -49,7 +49,7 @@ Azure AD B2C provides a set of packaged content containing HTML, CSS, and JavaSc
4949
[!INCLUDE [active-directory-b2c-customization-prerequisites](../../includes/active-directory-b2c-customization-prerequisites.md)]
5050

5151

52-
## Select a page layout version
52+
## Begin setting up a page layout version
5353

5454
If you intend to enable JavaScript client-side code, the elements you base your JavaScript on must be immutable. If they're not immutable, any changes could cause unexpected behavior on your user pages. To prevent these issues, enforce the use of a page layout and specify a page layout version to ensure the content definitions you’ve based your JavaScript on are immutable. Even if you don’t intend to enable JavaScript, you can specify a page layout version for your pages.
5555

@@ -69,9 +69,10 @@ For information about the different page layout versions, see the [Page layout v
6969

7070
::: zone pivot="b2c-custom-policy"
7171

72-
Select a [page layout](contentdefinitions.md#select-a-page-layout) for the user interface elements of your application.
72+
To specify a page layout version for your custom policy pages:
7373

74-
Define a [page layout version](contentdefinitions.md#migrating-to-page-layout) with page `contract` version for *all* of the content definitions in your custom policy. The format of the value must contain the word `contract`: _urn:com:microsoft:aad:b2c:elements:**contract**:page-name:version_. Learn how to [Migrating to page layout](contentdefinitions.md#migrating-to-page-layout) with page version.
74+
1. Select a [page layout](contentdefinitions.md#select-a-page-layout) for the user interface elements of your application.
75+
1. Define a [page layout version](contentdefinitions.md#migrating-to-page-layout) with page `contract` version for *all* of the content definitions in your custom policy. The format of the value must contain the word `contract`: _urn:com:microsoft:aad:b2c:elements:**contract**:page-name:version_.
7576

7677
The following example shows the content definition identifiers and the corresponding **DataUri** with page contract:
7778

@@ -142,9 +143,10 @@ You enable script execution by adding the **ScriptExecution** element to the [Re
142143

143144
Follow these guidelines when you customize the interface of your application using JavaScript:
144145

145-
- Don't bind a click event on `<a>` HTML elements.
146-
- Don’t take a dependency on Azure AD B2C code or comments.
147-
- Don't change the order or hierarchy of Azure AD B2C HTML elements. Use an Azure AD B2C policy to control the order of the UI elements.
146+
- Don't
147+
- bind a click event on `<a>` HTML elements.
148+
- take a dependency on Azure AD B2C code or comments.
149+
- change the order or hierarchy of Azure AD B2C HTML elements. Use an Azure AD B2C policy to control the order of the UI elements.
148150
- You can call any RESTful service with these considerations:
149151
- You may need to set your RESTful service CORS to allow client-side HTTP calls.
150152
- Make sure your RESTful service is secure and uses only the HTTPS protocol.
@@ -237,4 +239,4 @@ In the code, replace `termsOfUseUrl` with the link to your terms of use agreemen
237239

238240
## Next steps
239241

240-
Find more information about how you can customize the user interface of your applications in [Customize the user interface of your application in Azure Active Directory B2C](customize-ui-with-html.md).
242+
Find more information about how to [Customize the user interface of your application in Azure Active Directory B2C](customize-ui-with-html.md).

0 commit comments

Comments
 (0)