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: docs/templates/overview.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,21 +41,21 @@ Templates can be created and edited in the `Developer -> Templates` area of your
41
41
42
42

43
43
44
-
You start off by creating template group. When creating, you will have options to duplicate existing group with all templates in it. You are also able to select the roles that will have editing permissions for templates in this group.
44
+
You start off by creating a template group. During creation you will have the option to duplicate an existing group with all of its templates. You can also select the roles that will have editing permissions for templates in this group.
45
45
46
-
Then, create individual templates. You can duplicate existing template, or create blank one. If necessary, change the template type from "Webpage" to the type that you need (RSS Page, CSS, JavaScript, Static, XML)
46
+
Then, create individual templates. You can duplicate an existing template, or create a blank one. If necessary, change the template type from "Webpage" to the type that you need (RSS Page, CSS, JavaScript, Static, XML)
47
47
48
-
Existing templates can be edited with built-in editor, which provides intelligent syntax highlighting.
48
+
Existing templates can be edited with the built-in editor, which provides intelligent syntax highlighting.
49
49
50
-
TIP: **Tip:** The font size in template editor can be adjusted with a [configuration override](general/system-configuration-overrides.md#codemirror_fontsize).
50
+
TIP: **Tip:** The font size in the template editor can be adjusted with a [configuration override](general/system-configuration-overrides.md#codemirror_fontsize).
51
51
52
-
You can also edit template preferences and set front-end access permissions for it.
52
+
You can also edit template preferences and set front-end access permissions for the template.
53
53
54
54

55
55
56
56
## Saving templates as files
57
57
58
-
Templates, Template Groups, Templates, Global Variable, and Template Partials are always saved into database and this is their primary souce, however by default they are also saved as regular folders and files on your server.
58
+
Template Groups, Templates, Global Variables, and Template Partials are always saved into the database and this is their primary source, however by default they are also saved as regular folders and files on your server.
59
59
60
60
This behavior is controlled by [system configuration overrides](general/system-configuration-overrides.md#save_tmpl_files)in `system/user/config/config.php`:
The directory structure would be similar to shown below
68
+
The directory structure would be similar to what is shown below:
69
69
70
70
```
71
71
|-- system
@@ -102,13 +102,13 @@ The directory structure would be similar to shown below
102
102
| | | | | |-- index.html
103
103
```
104
104
105
-
This allows you to use your preferred text editor to edit Templates and then FTP the changes to the server.
105
+
This allows you to use your preferred text editor to edit Templates and then transfer the changes to the server.
106
106
107
107
`default_site` and `second_msm_site` are the site short names if you're running [Multiple Site Manager](msm/overview.md). If you have just one site, `default_site` is going to be the only one you need.
108
108
109
-
`_partials` folder will be holding your [template partials](templates/partials.md) for the site, and `_global_partials`will be holding partials that are shared through all MSM sites.
109
+
`_partials` folder holds your [template partials](templates/partials.md) for the site, and `_global_partials`holds partials that are shared through all MSM sites.
110
110
111
-
`_variables` folder will be holding your [template variables](templates/variable.md) for the site, and `_global_variables`will be holding variables that are shared through all MSM sites.
111
+
`_variables` folder holds your [template variables](templates/variable.md) for the site, and `_global_variables`holds variables that are shared through all MSM sites.
112
112
113
113
These are the naming rules that ExpressionEngine applies to these resources:
114
114
@@ -121,11 +121,11 @@ These are the naming rules that ExpressionEngine applies to these resources:
121
121
-_.xml_ creates an 'xml' template type
122
122
- Template group names (not including the .group) and template names (not including the .extension) are limited to 50 characters. Anything longer than that will be truncated by the database and fail to match the file.
123
123
124
-
Having several templates with same name but different extensions is not supported.
124
+
Having several templates with the same name but different extensions is not supported.
125
125
126
-
The existing templates are syncronized with the files as soon as any site page is accessed. However if you created new template or new template group on file system, you need to visit `Developer -> Templates` section of Control Panel in order to have them created in database.
126
+
The existing templates are synchronized with the files as soon as any site page is accessed. However if you created a new template or a new template group on the file system, you will need to visit the `Developer -> Templates` section of the Control Panel in order to have them created in the database.
127
127
128
-
NOTE: **Note:** When saving templates as files, `index.html` will be placed automatically into each template group folders when the templates are synchronized.
128
+
NOTE: **Note:** When saving templates as files, `index.html` will be placed automatically into each template group folder when the templates are synchronized.
129
129
130
130
## Hidden Templates
131
131
@@ -158,7 +158,7 @@ Additionally, PHP code in templates will operate slower than same code wrapped i
158
158
159
159
ExpressionEngine allows you to place [PHP](https://www.php.net/) code within your Templates so that it can be executed, allowing more dynamic capability with your content.
160
160
161
-
In order for this feature to be available, it needs to be enabled by adding
161
+
In order for this feature to be available, it needs to be enabled by adding
0 commit comments