Hi, How can I install a previous version of the Umbraco Template? I'd like to install version 13 but running dotnet new install Umbraco.Templates installs version 14. Nick
Install specific version of Umbraco using Dotnet CLI
Umbraco Forms not exporting entries.
Current Umbraco version 13.0.3, and forms version is 13.1.2. The forms are licensed. When trying to export the entries from the form I get the following error: System.Drawing is not supported on this platform,
Full excepion: angular.js:15697 Possibly unhandled rejection: {"data":{"ExceptionMessage":"System.Drawing is not supported on this platform.","ExceptionType":"System.PlatformNotSupportedException, System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e","StackTrace":" at System.Drawing.Font..ctor(String familyName, Single emSize, FontStyle style)\r\n at OfficeOpenXml.ExcelRangeBase.AutoFitColumns(Double MinimumWidth, Double MaximumWidth)\r\n at OfficeOpenXml.ExcelRangeBase.AutoFitColumns(Double MinimumWidth)\r\n at OfficeOpenXml.ExcelRangeBase.AutoFitColumns()\r\n at Umbraco.Forms.Core.Providers.Export.BaseExportToExcel.ExportToFile(RecordExportFilter filter, String filepath)\r\n at Umbraco.Forms.Web.Editors.ExportController.PostGenerateExport(RecordExportFilter model)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.
What is the solution to this? the client just purchased the license and now cannot export any entries. Please help.
Ideal project structure and dependencies
I've been re-thinking how I structure my Umbraco projects and I came across this article: https://adolfi.dev/blog/umbraco-project-structure/
In terms of dependencies, I'm slightly confused: I can understand wanting to separate out the Umbraco front-end from the Umbraco back-end logic but I don't understand how to set up refences in these scenarios.
In the article above, if Web.UI holds the Umbraco installation and Web holds the Umbraco back-end logic, shouldn't Web reference Web.UI? How do I access the Umbraco assemblies from the Web project unless I basically do two full Umbraco installations in both projects?
Thanks
Umbraco Exam without attending Training?
Is this an option??. I have built a LOT of sites with Umbraco and would really like to get certified however I don't think I could learn much more than I already know by attending the level 1 school.
$1850 is way to expensive for someone like me without the backing of a company to pay for it.
Thanks,
Matthew
Umbraco and Windows Authentication
Hi all,
Currently we are developing an intranet portal powered by Umbraco v7.7.7. that requires Windows Authentication for authenticating its members (front end users).
In terms of Windows Authentication, no login page and functionality will be provided / implemented by the portal. In addition, when a member initially hits a page of the portal, depending on the browser's security settings and security zones , the browser will handle the authentication process by displaying the "classic" authentication popup window in order for the member to enter his/hers domain's account credentials. As a result when a request finally reaches any page of the portal an identity (a WindowsIdentity to be exact) for the logged on member is already established. The WindowsIdentity exposes the username of the member (Name property) in the "domain\username" format.
Since we were unable to find any relevant documentation covering such configuration / functionality, we applied the following:
- In the Authentication Feature of IIS, we enabled only Windows Authentication at the root of the web site (all other authentication options are disabled).
- In Web Config, we changed the Authentication setting’s mode attribute from “Forms” to “Windows”.
- The Members’ username is stored in the “domain\username” format.
After applying the above configuration it seems that both authentication and authorization of members works as expected. As far as authorization is concerned, member groups are correctly attached to the logged on member and as a result access to content is successfully managed by the Public Access feature of Umbraco.
The downside of the above approach has to do with the Umbraco back office that requires Forms Authentication. While logged on to the Umbraco back office, sometimes the browser displays the authentication popup window and requires for the back office user to enter his domain’s account credentials and sometimes randomly terminates the back office user’s session and logs out the user.
Our questions are:
- Does Umbraco supports Windows Authentication out of the box (as it is described above)? Is there any relevant documentation or configuration guide?
- Assuming that our approach is valid, are there any settings so as to not affect the authentication of Umbraco back office?
- Is there any other suggested way for implementing this?
Thanks in advance,
George
Upgrading to Umbraco 14: Migrating macros
I am using Partial View Macros and parameters extensively throughout my Umbraco v13.2.2 site. Since Macros and Partial View Macros are now deprecated and will not be included in Version 14, could someone provide some basic instructions for how to best move these parameter-fed partial view macros to Partials or Blocks?
How to code with Umbraco and Razor pages ?
Hi all,
I'm having a hard time understanding the best way to code something clean with Umbraco. By that, I mean that a lot of code is in my templates which is not the cleanest work ever...
For example, my file "department.cshtml" starts with :
@using System.Runtime.InteropServices.JavaScript
@using Umbraco.Cms.Web.Common.PublishedModels; @inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage @{ Layout = "master.cshtml"; ViewBag.Title = Model.Value("title");
IPublishedContent? mediaItem = Model.Value<IPublishedContent>("planImage");
string imageUrl = null;
if (mediaItem != null)
{
imageUrl = mediaItem.Url();
}
string? modelGuid = Model.Key.ToString();
IPublishedContent? team = Umbraco
.Content(Guid.Parse(modelGuid))?
.ChildrenOfType("people")?
.FirstOrDefault(x => x.IsVisible());
string? teamGuid = team?.Key.ToString();
IEnumerable<IPublishedContent>? teamMembers = null;
IEnumerable<IPublishedContent>? managers = null;
if (teamGuid != null) {
teamMembers = Umbraco.Content(Guid.Parse(teamGuid))?
.ChildrenOfType("person")?
.Where(x => x.IsVisible())
.Where(x => x.Value("manager")?.ToString() == "False")
.OrderBy(x => x.Value("lastName"));
managers = Umbraco.Content(Guid.Parse(teamGuid))?
.ChildrenOfType("person")?
.Where(x => x.IsVisible())
.Where(x => x.Value("manager")?.ToString() == "True")
.OrderBy(x => x.Value("lastName"));
}
All this code would normally go to the file code-behind "department.cs" attached to my Razor page. But, if I try to use this way, I can't use some code for Umbraco like :
Umbraco
.Content(Guid.Parse(modelGuid))?
.ChildrenOfType("people")?
.FirstOrDefault(x => x.IsVisible());
How can I do this ?
Thank you all in advance for your time and patience.
Disclaimer : I'm a baby dev currently doing her first project ever, sorry if all of this sounds stupid, I'm learning. ☺
Create Forms on front-end - Umbraco Forms
Hello, anyone know if it's possible use Umbraco Forms to create forms to front-end page (reserved area), and not only from backoffice?
Thanks
Umbraco Back office and Windows Authentication
Is Windows Authentication possible with latest version of Umbraco? When Windows Authentication is enabled and user tries to login to Umbraco Backoffice the windows login prompt is appearing multiple times and logs out the user from the portal.
Controllers with ".xml" in the route template - Umbraco 14
I'm running into an issue where I'd like to provide XML sitemap using a controller. The sitemap may or may not include paginated results so keeping it dynamically produced within a number of controller endpoints is ideal. While I am trying to use SimpleMvcSitemp.Core
to handle this, I'm running into one issue.
When my route template ends in .xml
, the data from any documents doesn't seem to load so, for instance, getting the urls is impossible and always returns "#". But if I remove the .xml
portion, everything works as intended.
SO:
template: [Route("foobar")]
works
template: [Route("foobar.xml")]
doesn't work
What am I missing? Is there any way I can get this to work and keep this in an external controller?
UmbracoMapper Nested Mapping
I am trying to accomplish nested mapping but I cant inject UmbracoMapper into my MappingDefinition.
Boot Failed!
Hopefully, this is a simple one - not sure if it is possible, might not be...
Syncing images from Dynamics 365 CRM to Umbraco
Hello
We are using Dynamics 365 CRM along with a Web portal that has been constructed in Umbraco.
Our company is multi-site with a wide variety of security preferences for the users. Basically, we don't want our users to be messing around in the back end of Umbraco!
Ideally, we'd like the users to upload an image into Dynamics and for that image to sync to Umbraco. If possible, we'd then like Umbraco to sync back the url of the image to a field in Dynamics.
Does anyone know if this is possible, or have any ideas on a workaround?
Many thanks Jon
Umbraco 14 Update adding backoffice to the startup
When I upgraded the umbraco package from 13.2.2 to 14.1.1 added some packages I am getting the error
The call is ambiguous between the following methods or properties: 'Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(Umbraco.Cms.Core.DependencyInjection.IUmbracoBuilder, System.Action<Microsoft.Extensions.DependencyInjection.IMvcBuilder>?)' and 'Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(Umbraco.Cms.Core.DependencyInjection.IUmbracoBuilder, System.Action<Microsoft.Extensions.DependencyInjection.IMvcBuilder>?)
It is having the two oveloads
GetPropertyScaffold error 404 when opening 'Media' in Back Office
(I'm upgrading from version 7.3 to 7.15.8 in preparation to get to v8 and then on to latest, using Visual Studio 2019 and NuGet)
Most of the content seems to be behaving ok, but when I get to open the Media tab, it throws:
Request error: The URL returned a 404 (not found): /umbraco/backoffice/UmbracoApi/ContentType/GetPropertyTypeScaffold
I have to admit I have no idea what this is pointing at. Our live system shows a page of tiles. The test version shows a simple 'content' tab.
Any help gratefully accepted.
Umbraco install error for Database configuration page
when I run my project using CLI (dotnet run) on local host I get directed to the install umbraco page but when I fill out the text input boxes and click install I get an error...
the error displays...
Install Error. unknown Error
I'm using SQL Server as the database I have no clue how to solve this issue so any help or ideas are helpful. I'm new to umbraco
The migration plan does not support migrating from state.
Hello,
A small team at our company is currently trying some new things with Umbraco. Since the project is only used for experimenting we have a shared database.
One of the team members upgraded the project to Umbraco 9.2. I can see the database has been upgrade because when I check the umbracoKeyValue table it has the following data:
Key Umbraco.Core.Upgrader.State+Umbraco.Core
Value ad3d3b7f-8e74-45a4-85db-7ffad57f9243
By checking the UmbracoPlan GUID you can see this GUID is for the 9.2 upgrade: https://github.com/umbraco/Umbraco-CMS/blob/v9/contrib/src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs#L271
The developer upgraded to 9.2, but somehow the NuGet packages didn't get upgraded. So the database thinks it's on 9.2, but dlls are still on 9.1.1.
I upgraded the NuGet packages to 9.2, but somehow it still tries to run the migration. I've got screenshots, but I can't upload them because our gives an error. So here is the text:
Screen 1
Detected current version (ad3d3b7f), which needs to be upgraded to 9.2.0 (ad3d3b7f). To compare versions and read a report of changes between versions, use the View Report button below.
Screen 2
The database failed to upgrade. ERROR: The database configuration failed with the following message: The migration plan does not support migrating from state "ad3d3b7f-8e74-45a4-85db-7ffad57f9243". Please check log file for additional information (can be found in '~/umbraco/Logs')
I've checked the dlls in the bin folder and they are on 9.2 now.
Can I somehow skip the migration? I don't need it to run again.
Jeroen
Error on Preview Culture is Not Supported
In Umbraco 8.17 using Workflow 2.1.1 When submitting an edit for approval. When I click on the preview screen I get
Server Error in '/' Application. Culture is not supported. Parameter name: name undefined is an invalid culture identifier. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Globalization.CultureNotFoundException: Culture is not supported. Parameter name: name undefined is an invalid culture identifier.
How to run an Umbraco CLI project on local network
Usync Between 2 Different Umbraco Versions
Can you Usync content from SiteA running v13 into SiteB running v14 or do the versions need to match for it to work?
Umbraco 14.1.1 Clean Install Fail
Spinning up a new v14.1.1 failed.
The first error I got was that wwwroot/media didn't exist. So, I manually added that directory and ran the site again, and now I'm getting Boot Failed error:
{"@t":"2024-07-24T17:45:41.2183958Z","@mt":"An unhandled exception has occurred while executing the request.","@l":"Error","@x":"Umbraco.Cms.Core.Exceptions.BootFailedException: Boot failed: Umbraco cannot run. See Umbraco's log file for more details.\r\n at Umbraco.Cms.Core.Exceptions.BootFailedException.Rethrow(BootFailedException bootFailedException)\r\n at Umbraco.Cms.Web.Common.Middleware.BootFailedMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>cDisplayClass20.<0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at SixLabors.ImageSharp.Web.Middleware.ImageSharpMiddleware.Invoke(HttpContext httpContext, Boolean retry)\r\n at Umbraco.Cms.Api.Management.Middleware.BackOfficeAuthorizationInitializationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)\r\n at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.InterfaceMiddlewareBinder.<>cDisplayClass20.<0>d.MoveNext()\r\n--- End of stack trace from previous location ---\r\n at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)","@tr":"23aba20fd36826202d19d312583a8068","@sp":"da5521340b93adbe","EventId":{"Id":1,"Name":"UnhandledException"},"SourceContext":"Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware","RequestId":"40000056-0005-fa00-b63f-84710c7967bb","RequestPath":"/","ProcessId":18980,"ProcessName":"iisexpress","ThreadId":7,"ApplicationId":"a2f38578ac74f34f2589ae540dbfe4f60f362a23","MachineName":"REDACTED","Log4NetLevel":"ERROR"}