uSync.AutoTemplates
13.2.5
dotnet add package uSync.AutoTemplates --version 13.2.5
NuGet\Install-Package uSync.AutoTemplates -Version 13.2.5
<PackageReference Include="uSync.AutoTemplates" Version="13.2.5" />
paket add uSync.AutoTemplates --version 13.2.5
#r "nuget: uSync.AutoTemplates, 13.2.5"
// Install uSync.AutoTemplates as a Cake Addin #addin nuget:?package=uSync.AutoTemplates&version=13.2.5 // Install uSync.AutoTemplates as a Cake Tool #tool nuget:?package=uSync.AutoTemplates&version=13.2.5
uSync.AutoTemplates
Current Status: Experimental
AutoTemplates is currently a uSync experiment, you can try it, and we would love feedback, but really make sure you have backups, etc, before you use it.
You need to get uSync from our nightly feed to get the nuget package.
Current Version : 9.0.0-rc003.20210911.8
You can add the package to your project with
dotnet add
dotnet add package uSync.AutoTemplates -v 9.0.0-rc003.20210911.8
Template folder watcher, that keeps your template folder in Sync with Umbraco's Templates view.
If you create or edit .cshtml files in the view folder outside of Umbraco AutoTemplates will attempt to workout how the file should fit into the templates.
How it works
Note: Only works when Umbraco:Hosting:Mode is debug
AutoTemplates watches the ~/views folder in your Umbraco site,
Tries to find the Umbraco template in the DB for the file, if it doesn't exist it creates the template entry.
Reads the file and reads the value of the Layout variable, to workout what the master template should be - and put the template in umbraco in the right place
- also scans the folder at startup for when you change things while Umbraco isn't running.
Settings
By default - AutoTemplates is disabled, you have to turn it on in the
appsettings.config
file:
Enable AutoTemplates (default: false)
"uSync": {
"AutoTemplates": {
"Enabled": true
}
}
Delete missing templates (default: false)
When enabled - AutoTemplates will delete Templates from the Umbraco database when it cannot find a file in the ~/views folder for that template.
this is off by default, changing settings such as compile razor views can cause these files to be missing from disk, so if you have made changes like that you should keep this value turned off.
"uSync": {
"AutoTemplates": {
"Enabled": true
"Delete": true
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Umbraco.Cms.Web.BackOffice (>= 13.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
13.2.5 | 100 | 8/28/2024 |
13.2.4 | 108 | 6/27/2024 |
13.2.3 | 243 | 5/24/2024 |
13.2.2 | 126 | 4/30/2024 |
13.2.1 | 98 | 4/22/2024 |
13.2.0 | 104 | 4/17/2024 |
13.1.3 | 273 | 3/14/2024 |
13.1.2 | 207 | 3/11/2024 |
13.1.1 | 410 | 2/28/2024 |
13.1.0 | 399 | 2/15/2024 |
13.1.0-beta01 | 604 | 1/24/2024 |
13.0.1 | 312 | 1/15/2024 |
13.0.0 | 888 | 12/14/2023 |
13.0.0-rc2 | 498 | 11/30/2023 |
13.0.0-rc1 | 174 | 11/27/2023 |
12.2.4 | 109 | 5/29/2024 |
12.2.3 | 91 | 1/15/2024 |
12.2.2 | 639 | 11/7/2023 |
12.2.1 | 467 | 10/25/2023 |
12.2.0 | 620 | 10/6/2023 |
12.2.0-rc1 | 99 | 9/27/2023 |
12.1.0 | 154 | 8/10/2023 |
12.0.2 | 179 | 6/29/2023 |
12.0.1 | 174 | 6/29/2023 |
12.0.0 | 171 | 6/29/2023 |
12.0.0-rc1 | 131 | 6/22/2023 |
11.2.1 | 168 | 6/7/2023 |
11.2.0 | 165 | 5/11/2023 |
11.1.0 | 228 | 3/29/2023 |
11.0.3 | 241 | 3/16/2023 |
11.0.2 | 254 | 3/3/2023 |
11.0.1 | 311 | 1/12/2023 |
11.0.0 | 343 | 12/1/2022 |
11.0.0-rc3 | 135 | 11/4/2022 |
10.7.3 | 101 | 1/23/2024 |
10.7.2 | 92 | 1/15/2024 |
10.7.1 | 154 | 10/4/2023 |
10.7.0 | 133 | 9/25/2023 |
10.6.2 | 143 | 8/10/2023 |
10.6.1 | 151 | 6/7/2023 |
10.6.0 | 164 | 5/11/2023 |
10.5.0 | 200 | 4/4/2023 |
10.3.4 | 223 | 3/16/2023 |
10.3.3 | 230 | 3/3/2023 |
10.3.2 | 321 | 1/12/2023 |
10.3.1-beta001 | 155 | 11/17/2022 |
10.3.0 | 426 | 10/20/2022 |
10.2.1 | 500 | 9/26/2022 |
10.2.0 | 901 | 9/8/2022 |
10.1.0 | 494 | 8/4/2022 |
10.0.0 | 495 | 6/16/2022 |
10.0.0-rc5 | 162 | 6/8/2022 |
10.0.0-beta1 | 181 | 5/16/2022 |
9.4.0 | 608 | 4/25/2022 |
9.3.2 | 600 | 4/1/2022 |
9.3.1 | 604 | 3/31/2022 |
9.3.0 | 616 | 3/29/2022 |
9.2.0 | 672 | 2/21/2022 |
9.0.6 | 492 | 1/7/2022 |
9.0.2 | 478 | 10/7/2021 |
9.0.0-rc004 | 305 | 9/23/2021 |
9.0 : Dotnet core version
- 9.1 : Net 5/6 targets
- 9.2 : Peformance improvements
- 9.3 : Single pass
- 9.4 : First boot
10.0 : Umbraco 10 release (LTS)
- 10.1 : Umbraco 'Production' mode support
- 10.2 : Upload / Download Syncs
11.0 : Umbraco v11 release
12.0 : Umbraco v12 release
13.0 : Umbraco v13 release