@@ -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
33331 . Open the Document Type you want to use the template.
34- 2 . Open the Templates Workspace View.
34+ 2 . Open the ** Templates** Workspace View.
35353 . 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
6161By 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 .
1261266 . Save the changes .
1271277 . 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 .
1291299 . Select the ** Sections ** option .
13013010 . Choose ** Render a named section ** .
13113111 . 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
159159To 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