You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 14/umbraco-cms/fundamentals/design/templates/README.md
+11-11
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,17 @@ description: Templating in Umbraco builds on the concept of Razor Views from ASP
4
4
5
5
# Templates
6
6
7
-
Templates are the files that control the look and feel of the frontend of your Umbraco websites. Building on the concept of MVC Razor Views, template files enables you to structure your websites using HTML, CSS and JavaScript. When tied to a Document Type, templates are used to render your Umbraco content on the frontend.
7
+
Templates are the files that control the look and feel of the frontend of your Umbraco websites. Building on the concept of MVC Razor Views, template files enable you to structure your websites using HTML, CSS, and JavaScript. When tied to a Document Type, templates are used to render your Umbraco content on the frontend.
8
8
9
-
You can manage and work with your templates directly from the Settings section in the Umbraco backoffice. Each Template can also be found as `cshtml`files in the `Views` folder in your project directory.
9
+
You can manage and work with your templates directly from the Settings section in the Umbraco backoffice. Each Template can also be found as a `cshtml`file in the `Views` folder in your project directory.
10
10
11
11
## Creating Templates
12
12
13
-
When you are building an Umbraco website you can choose to automatically generate Templates when you create a new Document Type. This will ensure the connection between the two and you can jump straight from defining the content to structuring it.
13
+
When building an Umbraco website you can automatically generate Templates when you create a new Document Type. This will ensure the connection between the two and you can jump straight from defining the content to structuring it.
14
14
15
15
Choose the option called **[Document Type with Template](../../data/defining-content/README.md)** when you create a new Document Type to automatically create a Template as well.
16
16
17
-
In some cases, you might want to create independent Templates that doesn't have a direct connection to a Document Type. You can follow the steps below to create a new blank Template:
17
+
In some cases, you might want to create independent Templates that don't have a direct connection to a Document Type. You can follow the steps below to create a new blank Template:
18
18
19
19
1. Go to the **Settings** section inside the Umbraco backoffice.
20
20
2. Click **...** next to the **Templates** folder.
@@ -38,7 +38,7 @@ To use a Template on your content, you must first allow it on the content Docume
38
38
39
39
## Inheriting a Template
40
40
41
-
A Template can inherit content from what is called a "Master Template". This is done by using the ASP.NET views Layout feature.
41
+
A Template can inherit content from a "Master Template". This is done by using the ASP.NET views Layout feature.
42
42
43
43
Let's say you have a Template called **MainView**, containing the following HTML:
44
44
@@ -71,7 +71,7 @@ Follow these steps to use a Template file as a Master Template:
@@ -81,7 +81,7 @@ The updated markup will look something like the snippet below and the Template i
81
81
<p>Mycontent</p>
82
82
```
83
83
84
-
When a page that uses a Template with a Master Template defined is rendered, the HTML of the two template is merged.
84
+
When a page that uses a Template with a Master Template defined is rendered, the HTML of the two templates is merged.
85
85
86
86
The code from the Template replaces the `@RenderBody()` tag in the Master Template. Following the examples above, the final HTML will look like the code in the snippet below:
87
87
@@ -101,7 +101,7 @@ The code from the Template replaces the `@RenderBody()` tag in the Master Templa
0 commit comments