Skip to content

Commit 9422b7d

Browse files
committed
update info on default behavior
1 parent 0869f78 commit 9422b7d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/templates/overview.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,17 @@ You can also edit template preferences and set front-end access permissions for
5555

5656
## Saving templates as files
5757

58-
Templates are always saved into database, however they can also be saved as files by setting [system configuration override](general/system-configuration-overrides.md#save_tmpl_files)in `system/user/config/config.php`:
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.
59+
60+
This behavior is controlled by [system configuration overrides](general/system-configuration-overrides.md#save_tmpl_files)in `system/user/config/config.php`:
5961
```php
62+
// Controls whether template and partial files should be saved on filesystem
6063
$config['save_tmpl_files'] = 'y';
64+
// Controls whether Global variables should be saved as files (requires `save_tmpl_files` also being set to `y`)
65+
$config['save_tmpl_globals'] = 'y';
6166
```
62-
ExpressionEngine, by default, saves Template Groups, Templates, Global Variable, and Template Partials as regular folders and files on your server. The directory structure would be similar to shown below
67+
68+
The directory structure would be similar to shown below
6369

6470
```
6571
|-- system

0 commit comments

Comments
 (0)