Info
| Version: | 7.3.0 | 
| Author(s): | Adriano Fabri | 
| Last Update: | Monday, September 24, 2018 | 
| .NET Fiddle: | Create the first Fiddle | 
| Project Url: | https://our.umbraco.org/projects/backoffice-extensions/af-auto-populate-properties/ | 
| NuGet Url: | https://www.nuget.org/packages/AFAutoPopulateProperties | 
Install
Install-Package AFAutoPopulateProperties
                        dotnet add package AFAutoPopulateProperties
                        paket add AFAutoPopulateProperties
                        
                                AFAutoPopulateProperties Download (Unzip the "nupkg" after downloading)
                            
                        Dependencies
- System.Net.Http(>= 2.0.0)
- Microsoft.AspNet.WebApi.Core(>= 5.2.3)
- Microsoft.AspNet.Mvc(>= 5.2.3)
- Newtonsoft.Json(>= 10.0.0.3)
- UmbracoCms(>= 7.7.0)
Tags
 
                
For each document and/or media types, the developers must specify wich properties must be auto populate and how.
The default configuration file ("AF-AutoPopulateProperties.config.json") is stored in the config folder, it contains a basic configuration that is already working.
JSON structure:
- Property "section": "content" or "media"
- Property "action": "created" or "saving"
- Property "doctypeAlias": if the value is empty the action will be applied to all doctypes otherwise the action will be applied only to the specified doctype
- Property "propertyAlias": Property to auto populate
- Property "propertyType": Property type (actually the value accepted are only string, datetime or bool)
- Property "propertyAliasToCopyValue": The property from which to copy the value (valid only for "saving" action)
- Property "defaultValue": the default value.