Kevin Jump
12/02/2021, 1:44 PMKevin Jump
12/02/2021, 1:44 PMKevin Jump
12/02/2021, 1:45 PMKevin Jump
12/02/2021, 1:45 PMAddWebsite()
is called in the startup.cs e.g
services.AddUmbraco(_env, _config)
.AddBackOffice()
.AddAubergineThemes()
.AddWebsite()
.AddComposers()
.Build();
However this has two problems:
1. you can't add the themes in a composer (so users would have to alter this file)
2. because Umbraco adds its views to the front of the list, they will always be found first, what I would want is the files in /views/theme/mytheme/
to be used and fail back to /views
Kevin Jump
12/02/2021, 1:45 PMAddWebsite()
models builder does something fancy to the views in AddInMemoryModelsRazorEngine
(see https://github.com/umbraco/Umbraco-CMS/blob/5bfab13dc5a268714aad2426a2b68ab5561a6407/src/Umbraco.Web.Common/ModelsBuilder/DependencyInjection/UmbracoBuilderDependencyInjectionExtensions.cs#L142:L165)
I think this is the point when any new config options are not being loaded into the RazorViewEngineOptions
So question for the Umbraco brains,
- do we think this is something that can be 'fixed' inside the core - so views can be added after Umbraco has added its own? (if so i am happy to see what that might mean.. but its a little out of my depth).
- Is there infact another way to add views that would work currently?
- Or is this baked into Umbraco and probably isn't the way to go?p-m-j
12/02/2021, 2:10 PMp-m-j
12/02/2021, 2:14 PMp-m-j
12/02/2021, 2:17 PMp-m-j
12/02/2021, 2:17 PMp-m-j
12/02/2021, 2:25 PMp-m-j
12/02/2021, 2:28 PMp-m-j
12/02/2021, 2:30 PMJason
12/02/2021, 2:43 PMKevin Jump
12/02/2021, 2:43 PMp-m-j
12/02/2021, 2:43 PMp-m-j
12/02/2021, 2:43 PMp-m-j
12/02/2021, 2:45 PMKevin Jump
12/02/2021, 2:45 PMKevin Jump
12/02/2021, 2:46 PMJason
12/02/2021, 2:46 PMJason
12/02/2021, 2:46 PMp-m-j
12/02/2021, 2:46 PMJason
12/02/2021, 2:46 PMJason
12/02/2021, 2:47 PMJason
12/02/2021, 2:47 PMKevin Jump
12/02/2021, 2:47 PMJason
12/02/2021, 2:47 PMJason
12/02/2021, 2:49 PMp-m-j
12/02/2021, 2:49 PMp-m-j
12/02/2021, 2:49 PMKevin Jump
12/02/2021, 2:49 PMp-m-j
12/02/2021, 2:50 PMp-m-j
12/02/2021, 2:50 PMp-m-j
12/02/2021, 2:50 PMKevin Jump
12/02/2021, 2:50 PMp-m-j
12/02/2021, 2:51 PMKevin Jump
12/02/2021, 2:51 PMp-m-j
12/02/2021, 2:52 PMJason
12/02/2021, 2:52 PMJason
12/02/2021, 2:52 PMKevin Jump
12/02/2021, 2:53 PMKevin Jump
12/02/2021, 2:53 PMKevin Jump
12/02/2021, 2:53 PMp-m-j
12/02/2021, 2:53 PMKevin Jump
12/02/2021, 2:54 PMJason
12/02/2021, 2:54 PMp-m-j
12/02/2021, 2:54 PMJason
12/02/2021, 2:54 PMp-m-j
12/02/2021, 2:54 PMKevin Jump
12/02/2021, 2:54 PMKevin Jump
12/02/2021, 2:55 PMp-m-j
12/02/2021, 2:55 PMKevin Jump
12/02/2021, 2:55 PMKevin Jump
12/02/2021, 2:55 PMKevin Jump
12/02/2021, 2:56 PMKevin Jump
12/02/2021, 2:56 PMKevin Jump
12/02/2021, 2:56 PMp-m-j
12/02/2021, 2:56 PMp-m-j
12/02/2021, 2:57 PMKevin Jump
12/02/2021, 2:59 PMJason
12/02/2021, 3:02 PMKevin Jump
12/03/2021, 4:39 PMp-m-j
12/03/2021, 4:43 PMp-m-j
12/03/2021, 4:44 PMKevin Jump
12/03/2021, 5:33 PMKevin Jump
12/03/2021, 5:34 PMKevin Jump
12/03/2021, 5:35 PMKevin Jump
12/03/2021, 5:37 PMp-m-j
12/03/2021, 6:00 PMp-m-j
12/03/2021, 6:00 PMKevin Jump
12/03/2021, 6:14 PMKevin Jump
12/04/2021, 8:37 AMKevin Jump
12/04/2021, 8:39 AMKevin Jump
12/04/2021, 8:39 AMKevin Jump
12/04/2021, 8:40 AMKevin Jump
12/04/2021, 9:07 AM<StaticWebAssetBasePath>App_Plugins/uSync</StaticWebAssetBasePath>
and this means it behaves "Almost" like its really in App_Plugins, (Umbraco still doesn't load the lang xml files, because its not really there, but other stuff looking for a file (e.g a tree node root) now work, because /App_Plugins/{Plugin}/backoffice/{plugin}
is now a valid path)Sebastiaan
12/04/2021, 9:20 AMKevin Jump
12/04/2021, 9:28 AMSebastiaan
12/04/2021, 9:37 AMp-m-j
12/04/2021, 9:45 AMp-m-j
12/04/2021, 9:50 AMp-m-j
12/04/2021, 9:54 AMKevin Jump
12/04/2021, 9:55 AMwwwroot\App_plugins\uSync
which isn't where they would normally be (\App_Plugins\uSync
) but from a browser point of view everything works. just the lang files.Kevin Jump
12/04/2021, 9:56 AMp-m-j
12/04/2021, 9:56 AMp-m-j
12/04/2021, 9:57 AMp-m-j
12/04/2021, 9:57 AMKevin Jump
12/04/2021, 9:58 AMp-m-j
12/04/2021, 9:59 AMp-m-j
12/04/2021, 9:59 AMKevin Jump
12/04/2021, 10:00 AMp-m-j
12/04/2021, 10:00 AMp-m-j
12/04/2021, 10:01 AMp-m-j
12/04/2021, 10:02 AMp-m-j
12/04/2021, 10:03 AMKevin Jump
12/04/2021, 10:03 AMp-m-j
12/04/2021, 10:03 AMKevin Jump
12/04/2021, 10:04 AMp-m-j
12/04/2021, 10:04 AMKevin Jump
12/04/2021, 10:05 AMp-m-j
12/04/2021, 10:05 AMp-m-j
12/04/2021, 10:06 AMp-m-j
12/04/2021, 10:06 AMKevin Jump
12/04/2021, 10:07 AMp-m-j
12/04/2021, 10:08 AMp-m-j
12/04/2021, 10:08 AMp-m-j
12/04/2021, 10:09 AMKevin Jump
12/04/2021, 10:12 AMKevin Jump
12/04/2021, 10:12 AMp-m-j
12/04/2021, 10:13 AMp-m-j
12/04/2021, 10:15 AMp-m-j
12/04/2021, 10:16 AMp-m-j
12/04/2021, 10:16 AMp-m-j
12/04/2021, 10:17 AMKevin Jump
12/04/2021, 10:23 AMp-m-j
12/04/2021, 10:23 AMKevin Jump
12/04/2021, 10:23 AMp-m-j
12/04/2021, 10:24 AMp-m-j
12/04/2021, 10:24 AMp-m-j
12/04/2021, 10:26 AMp-m-j
12/04/2021, 10:28 AMp-m-j
12/04/2021, 10:29 AMp-m-j
12/07/2021, 12:59 PMJason
12/07/2021, 2:06 PMp-m-j
12/07/2021, 2:20 PM