https://discord.umbraco.com
Join Discord
Umbraco Login redirect - v13.4
s

SiempreSteve

about 1 year ago
Noticed something has broken between v10 and v13. If you hit a url to the back office it used to set a redirectUrl param and hten on successful login redirect the editor to where they were going. Used this to provide a front end guard on non-production sites. (e.g. redirecting users back to the correct page on the stage / uat site after authenticating them as an Umbraco user). This seems to be broken. Has anyone got a workaround for this?
s
o
t
  • 3
  • 3
  • 142
Block list label using UFM - Accessing nested properties
k

kirin-808

10 months ago
Hi there! We've just upgraded to Umbraco 14.3 and I'm trying to figure out how to access nested properties of field values for block list items. I'm using a color picker and used to be able to access what I needed with {{ backgroundColor.label }} but since the upgrade, the farthest I could go is with {=backgroundColor} which displays "[object Object]" as the label ( {=backgroundColor.label} displays an empty comment propably because it doesn't exist or has a null value).
k
k
k
  • 3
  • 5
  • 141
Why doesn't mini profiler work?
t

TigerMan

over 1 year ago
Hi I installed a brand new Umbraco 13 and enabled profiling under the profiling tab. Created a basic document type and ran the site. The page displayed and I entered ?umbdebug=true at the end of the URL but nothing is being displayed. I'm expecting some pop up on the right but nothing is shown. I have not installed anything else but was expecting to see a pop up. I also have Hosting, debug= true in my app settings. Have I missed off anything?
t
u
+3
  • 5
  • 6
  • 141
Has the SendingAllowedChildrenNotification been deprecated for V14?
m

marcemarc

over 1 year ago
There is this event in V8->v13 called SendingAllowedChildrenNotification that allows you to use c# to hook into the building of the list of types of documents you can create under a node. I was about to suggest somebody used it in V13, as a way to stop multiple 'Site Setting' nodes from being created, but thought I'd check it was still there, and I couldn't see it in V14? is it no longer a thing?? https://github.com/umbraco/Umbraco-CMS/blob/v13/contrib/src/Umbraco.Core/Notifications/SendingAllowedChildrenNotification.cs
m
s
+7
  • 9
  • 31
  • 140
Custom labels in Umbraco 14 Blocks
d

Dixi

over 1 year ago
Hi guys, are there any docs on the label formatting options for blocks in block list / grid in Umbraco 14? The official docs are still pending to be updated
d
p
+5
  • 7
  • 12
  • 140
Solved: app.UseStaticFiles( ... ) - where/when to call?
k

kdx-perbol

about 1 year ago
I need to call
app.UseStaticFiles( ... )
to customize the behavior, but I don't know where/when to put this in
Program.cs
. I'm guessing
.UseUmbraco()
already does this internally? I'm using the Umbraco 13 NuGet project template.
k
d
b
  • 3
  • 9
  • 139
Hide Block Element Property in specific Block List
d

Danine Noble

over 1 year ago
I'm experimenting with the Editior Model Notifications and trying to hide a specific property from a specific element in a particular block list property without affecting everywhere else the element is used. Goal: Swap availability of a treenode selector depending on the area of the page the author is adding it to. For example: the main property is a treenode selector that has no restriction on item type selectable, but then property2 is a treenode with a more limited selection. Only 1 is available at any given time depending on the blocklist property the element is sitting in. The closest I've gotten is hiding the property's value... But can't seem to get at hiding the property itself. I've probably been staring at it too long, lol Snippet:
var rootProperty = notification.Content.Variants.FirstOrDefault()?
    .Tabs.SelectMany(f => f.Properties ?? [])
    .FirstOrDefault(f => f.Alias.InvariantEquals("region"));

if (rootProperty?.Value is not BlockValue blockList) { return; }

foreach (var block in blockList.ContentData.Where(block => block.ContentTypeKey == Constants.RCGuid))
{
    // using block.PropertyValues seems to affect nothing
    // this removes the selected value of the property...
    block.RawPropertyValues.Remove("reuseContent2");

}
d
d
+2
  • 4
  • 9
  • 140
Where to put my changes to Program/Startup.cs
s

skttl

almost 2 years ago
I'm doing a 12->13 upgrade, and I want to move all my custom stuff out of the new Program.cs file, to keep it untouched as I think it will make upgrades easier going forward. But I have some stuff, I'm unsure where to place. Can you help me with the following? - In Startup.cs/Configure, I have a
context.Database.Migrate();
context being the EF context for some custom db work, is injected into Startup.cs. - app.UseExceptionHandler("/error-500") in Startup.cs/Configure - app.UseResponseComporession() in Startup.cs/Configure - Host.....ConfigureAppConfiguration((context, builder) => { builder.AddJsonFile($"appsettings.Local.json", true, true).AddEnvironmentVariables(); }) in Program.cs/CreateHostBuilder Can I put everything in a Composer? I guess some of it should be middleware, at least the docs told me to do that for my CORS policy 🙂
s
d
  • 2
  • 5
  • 139
Fresh v13 install on Arm64 (Surface Pro 11)
b

Barry Fogarty

over 1 year ago
Morning! I have a shiny new Surface Pro 11 with the Snapdragon Arm64 chip and I'm having difficulty installing v13 on it. The site builds and boots, but I get a 503 Service Unavailable console error in the
GetSetup
Umbraco API call. Nothing relevant in the Umbraco logs. This happens before the install form appears on the frontend. Interestingly a v14 install works fine, as does an unintended install via
dotnet new umbraco
e.g. the latest LTS with Clean Starter Kit example from Paul Seal's excellent package script writer: https://psw.codeshare.co.uk/?TemplateName=Umbraco.Templates&TemplateVersion=LTS&Packages=&UserEmail=admin%40example.com&ProjectName=MyProject&CreateSolutionFile=true&SolutionName=MySolution&UseUnattendedInstall=true&DatabaseType=SQLite&UserPassword=1234567890&UserFriendlyName=Administrator&IncludeStarterKit=true&StarterKitPackage=clean&OnelinerOutput=false&RemoveComments=false Could be a bug and I'll need to log an issue, but interested to hear if anyone else has tried this on Arm64? It should be the same as what has worked on Mac/Linux for a while right? Could it be to do with the NodeJs version installed on my machine? Thanks!
b
s
+8
  • 10
  • 50
  • 137
Is it possible to move a field to another tab?
t

TigerMan

over 1 year ago
Hi I have a field under tab 1. I now want to move that field to tab 2 but retaining all the existing data. Is this possible as I don't see any option? Thanks
t
k
m
  • 3
  • 2
  • 137
Previous181920Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by