Skip to content

Commit 4b4fe2f

Browse files
authored
Merge pull request #7251 from umbraco/models-builder
Added appSettings sample to ModelsBuilder Builder Modes article
2 parents 5704d35 + a03753c commit 4b4fe2f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

15/umbraco-cms/reference/templating/modelsbuilder/builder-modes.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ Models Builder can be used in different modes:
1111

1212
The mode is indicated by the `Umbraco:CMS:ModelsBuilder:ModelsMode` key in the configuration (`appsettings.json` files).
1313

14+
**Example `appsettings.json` configuration**
15+
16+
```json
17+
{
18+
"Umbraco": {
19+
"CMS": {
20+
"ModelsBuilder": {
21+
"ModelsMode": "InMemoryAuto"
22+
}
23+
}
24+
}
25+
}
26+
```
27+
28+
Replace `InMemoryAuto` with one of the valid options: `SourceCodeAuto`, `SourceCodeManual`, or `InMemoryAuto` depending on your preferred mode.
29+
1430
## In memory
1531

1632
Corresponds to the `InMemoryAuto` setting value.

16/umbraco-cms/reference/templating/modelsbuilder/builder-modes.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ Models Builder can be used in different modes:
1111

1212
The mode is indicated by the `Umbraco:CMS:ModelsBuilder:ModelsMode` key in the configuration (`appsettings.json` files).
1313

14+
**Example `appsettings.json` configuration**
15+
16+
```json
17+
{
18+
"Umbraco": {
19+
"CMS": {
20+
"ModelsBuilder": {
21+
"ModelsMode": "InMemoryAuto"
22+
}
23+
}
24+
}
25+
}
26+
```
27+
28+
Replace `InMemoryAuto` with one of the valid options: `SourceCodeAuto`, `SourceCodeManual`, or `InMemoryAuto` depending on your preferred mode.
29+
1430
## In memory
1531

1632
Corresponds to the `InMemoryAuto` setting value.

0 commit comments

Comments
 (0)