Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How can I get Config Values in Umbraco v8. I am Migrating an Umbraco v7 project and have the following code.
if (UmbracoConfig.For.UmbracoSettings().RequestHandler.AddTrailingSlash) { baseRoot = baseRoot.EnsureEndsWith("/"); }
How can I achieve the same in Umbraco v8, as I am unable to find the UmbracoConfig class?
Hi
Use "GlobalSettings" class
More info here - https://our.umbraco.com/apidocs/v8/csharp/api/Umbraco.Core.Configuration.GlobalSettings.html
Thanks, Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How can I get Config Values in Umbraco v8?
How can I get Config Values in Umbraco v8. I am Migrating an Umbraco v7 project and have the following code.
How can I achieve the same in Umbraco v8, as I am unable to find the UmbracoConfig class?
Hi
Use "GlobalSettings" class
More info here - https://our.umbraco.com/apidocs/v8/csharp/api/Umbraco.Core.Configuration.GlobalSettings.html
Thanks, Alex
is working on a reply...