uSync.AutoTemplates
11.2.0
See the version list below for details.
dotnet add package uSync.AutoTemplates --version 11.2.0
NuGet\Install-Package uSync.AutoTemplates -Version 11.2.0
<PackageReference Include="uSync.AutoTemplates" Version="11.2.0" />
paket add uSync.AutoTemplates --version 11.2.0
#r "nuget: uSync.AutoTemplates, 11.2.0"
// Install uSync.AutoTemplates as a Cake Addin #addin nuget:?package=uSync.AutoTemplates&version=11.2.0 // Install uSync.AutoTemplates as a Cake Tool #tool nuget:?package=uSync.AutoTemplates&version=11.2.0
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 | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net7.0
- Umbraco.Cms.Web.BackOffice (>= 11.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 | 95 | 8/28/2024 |
13.2.4 | 103 | 6/27/2024 |
13.2.3 | 238 | 5/24/2024 |
13.2.2 | 122 | 4/30/2024 |
13.2.1 | 93 | 4/22/2024 |
13.2.0 | 99 | 4/17/2024 |
13.1.3 | 267 | 3/14/2024 |
13.1.2 | 203 | 3/11/2024 |
13.1.1 | 406 | 2/28/2024 |
13.1.0 | 395 | 2/15/2024 |
13.1.0-beta01 | 600 | 1/24/2024 |
13.0.1 | 307 | 1/15/2024 |
13.0.0 | 885 | 12/14/2023 |
13.0.0-rc2 | 495 | 11/30/2023 |
13.0.0-rc1 | 170 | 11/27/2023 |
12.2.4 | 105 | 5/29/2024 |
12.2.3 | 84 | 1/15/2024 |
12.2.2 | 635 | 11/7/2023 |
12.2.1 | 464 | 10/25/2023 |
12.2.0 | 617 | 10/6/2023 |
12.2.0-rc1 | 96 | 9/27/2023 |
12.1.0 | 150 | 8/10/2023 |
12.0.2 | 176 | 6/29/2023 |
12.0.1 | 170 | 6/29/2023 |
12.0.0 | 166 | 6/29/2023 |
12.0.0-rc1 | 127 | 6/22/2023 |
11.2.1 | 162 | 6/7/2023 |
11.2.0 | 159 | 5/11/2023 |
11.1.0 | 225 | 3/29/2023 |
11.0.3 | 238 | 3/16/2023 |
11.0.2 | 248 | 3/3/2023 |
11.0.1 | 305 | 1/12/2023 |
11.0.0 | 340 | 12/1/2022 |
11.0.0-rc3 | 131 | 11/4/2022 |
10.7.3 | 95 | 1/23/2024 |
10.7.2 | 89 | 1/15/2024 |
10.7.1 | 150 | 10/4/2023 |
10.7.0 | 129 | 9/25/2023 |
10.6.2 | 139 | 8/10/2023 |
10.6.1 | 147 | 6/7/2023 |
10.6.0 | 160 | 5/11/2023 |
10.5.0 | 197 | 4/4/2023 |
10.3.4 | 219 | 3/16/2023 |
10.3.3 | 227 | 3/3/2023 |
10.3.2 | 317 | 1/12/2023 |
10.3.1-beta001 | 151 | 11/17/2022 |
10.3.0 | 423 | 10/20/2022 |
10.2.1 | 496 | 9/26/2022 |
10.2.0 | 898 | 9/8/2022 |
10.1.0 | 488 | 8/4/2022 |
10.0.0 | 491 | 6/16/2022 |
10.0.0-rc5 | 159 | 6/8/2022 |
10.0.0-beta1 | 177 | 5/16/2022 |
9.4.0 | 605 | 4/25/2022 |
9.3.2 | 597 | 4/1/2022 |
9.3.1 | 598 | 3/31/2022 |
9.3.0 | 611 | 3/29/2022 |
9.2.0 | 666 | 2/21/2022 |
9.0.6 | 488 | 1/7/2022 |
9.0.2 | 473 | 10/7/2021 |
9.0.0-rc004 | 301 | 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
- 10.1 : Umbraco 'Production' mode support
- 10.2 : Upload / Download Syncs
11.0 : Umbraco 11 release