Skip to content

Commit b1a60b5

Browse files
committed
apply review comments to v15
1 parent 8b2012f commit b1a60b5

File tree

2 files changed

+7
-15
lines changed
  • 14/umbraco-cms/fundamentals/design/templates
  • 15/umbraco-cms/fundamentals/design/templates

2 files changed

+7
-15
lines changed

Diff for: 14/umbraco-cms/fundamentals/design/templates/README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,8 @@ Keep in mind that whenever a mandatory named section is missing, it will result
158158

159159
To make the section mandatory, you have two options:
160160

161+
* Add `true` to the code tag: `@RenderSection("SectionName", true)`.
161162
* Check the **Section is mandatory** field when using the **Sections** dialog in the backoffice.
162-
* Add `true` to the code tag as shown in the example below.
163-
164-
```csharp
165-
@RenderSection("SectionName", true)
166-
```
167163

168164
![Create partial](images/render-named-section-mandatory.png)
169165

Diff for: 15/umbraco-cms/fundamentals/design/templates/README.md

+6-10
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ You will now see the default template markup in the backoffice template editor.
2828

2929
## Allowing a Template on a Document Type
3030

31-
To use a Template on your content, you must first allow it on the content Document Type type.
31+
To use a Template on your content, you must first allow it on the content Document Type.
3232

3333
1. Open the Document Type you want to use the template.
34-
2. Open the Templates Workspace View.
34+
2. Open the **Templates** Workspace View.
3535
3. Select your Template under the **Allowed Templates** section.
3636

3737
![Allowing template](images/allow-template.png)
@@ -56,7 +56,7 @@ Let's say you have a Template called **MainView**, containing the following HTML
5656
</html>
5757
```
5858

59-
This file contains the structural HTML tags for your website but not much else.
59+
This file contains the structural HTML tags for your website.
6060

6161
By using the Template as the "Master Template" on your other Templates, you can ensure that they inherit the same structural HTML.
6262

@@ -122,10 +122,10 @@ The following code will be added to your Template:
122122
}
123123
```
124124

125-
5. Add whichever code you need between the curly brackets.
125+
5. Add your code between the curly brackets.
126126
6. Save the changes.
127127
7. Open the Master Template.
128-
8. Choose a spot for the section, and set the cursor there.
128+
8. Choose a spot for the section and set the cursor there.
129129
9. Select the **Sections** option.
130130
10. Choose **Render a named section**.
131131
11. Enter the name of the section you want to add.
@@ -158,12 +158,8 @@ Keep in mind that whenever a mandatory named section is missing, it will result
158158

159159
To make the section mandatory, you have two options:
160160

161+
* Add `true` to the code tag: `@RenderSection("SectionName", true)`.
161162
* Check the **Section is mandatory** field when using the **Sections** dialog in the backoffice.
162-
* Add `true` to the code tag as shown in the example below.
163-
164-
```csharp
165-
@RenderSection("SectionName", true)
166-
```
167163

168164
![Create partial](images/render-named-section-mandatory.png)
169165

0 commit comments

Comments
 (0)