https://discord.umbraco.com
Join Discord
[SOLVED] How do I get subsections of a IConfiguration section?
t

TackleMcClean 🏅

over 1 year ago
I am using
IUmbracoBuilder
to do this:
var section = builder.Config.GetSection("PrepopulateUsers")
This returns an
IConfigurationSection
and I need to check its subsections as in the image (those 5 sub sections). How can I get info on those sections? The
IConfigurationSection
has no methods to get those sections from what I can see? https://cdn.discordapp.com/attachments/1220366835116019732/1220366835250368542/image.png?ex=660eae2e&is=65fc392e&hm=b63e8ec933d75b328d64bbea97e32aac900b8429e079b23fb9a0f08a56528aae&
t
r
h
  • 3
  • 4
  • 136
Migrate Nested Content to Block List in v13 site
d

Dan

about 1 year ago
Hi, I have an Umbraco 13 site which uses Nested Content (it was upgraded from an earlier version, hence the use of the now legacy data type). I'd like to update it to use Block Lists instead. I'm not clear whether it's possible to use uSync Migrations for this, since the documentation suggests the Packer is only for v7 and v8 sites. Is there a way to run the migrations on a v13 site? If so, is it possible to do this 'in situ' or would it need to be run as an export and clean import to a fresh site?
d
  • 1
  • 1
  • 135
Global login redirect?
c

Chris Bass

over 1 year ago
When using role-based permissions for Member page views, the Umbraco 13 backoffice provides a 'Restrict Public Access' popup, that lets you pick the groups with permission, but also forces you to choose a login page and error page. In my case (and I feel like, in many if not most cases) all pages that are restricted have the same login page and the same error page - Is there a way to set this globally (at least, for pages that have access restrictions) or do I really have to teach page editors to set it on each page being restricted?
c
m
m
  • 3
  • 9
  • 134
How to find the problem block?
m

Matt Wise

about 2 years ago
When saving and publishing (I have far too many content nodes to know which one, as its part of a migration) Is there a way I can debug to find the source of this: Error occurred executing workItem. Newtonsoft.Json.JsonSerializationException: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'Umbraco.Cms.Core.Models.Blocks.BlockValue'
m
d
  • 2
  • 7
  • 131
Excluding items from search
t

TigerMan

about 1 year ago
Hi everyone I have a simple class which retrieves items from Umbraco 13 using examine search and displays them. I was trying to exclude umbracoNaviHide pages by having the below var create = index.searcher.CreateQuery(Indextypes.Content).GroupedNot("umbracoNaviHide", "1") Using this it still returns pages which have been marked as hide. Is there a criteria I need this to meet or anyway to distinguish why this is occurring? Thank you
t
a
j
  • 3
  • 6
  • 130
How to get block list from icontent?
a

ahwm

11 months ago
We are needing to do a one-time bulk update of 700+ content pages. I know how to manipulate the block list and create new blocks. The issue I'm having is that I can't seem to get the current blocks from IContent. The property alias is "mainContent" but
p.GetValue("mainContent")
returns null. I found [this forum post](https://our.umbraco.com/forum/using-umbraco-and-getting-started/112682-work-with-blocklist-properties-using-the-umbraco-content-service-v12) but the
content.GetValue("content").ToString()
line is where I'm having trouble. Any insight?
a
t
  • 2
  • 6
  • 129
Can you Increase Log File Size Limit?
d

Dan 'Diplo' Booth

over 1 year ago
If you try and view the Umbraco / serilog files that are above a certain size you get the message: "Today's log file is too large to be viewed and would cause performance problems." So is there a way I can decide how big is too big? I've a powerful desktop with 12 cores / 32GB RAM so I'm pretty sure it would be OK with a larger size. When you are doing stuff like trace-level logging it can easily fill up and trying to read a JSON log file in Notepad++ isn't fun... So can we increase the threshold? How? Alternatively, are there any offline log viewers (eg. stand alone app)? I remember someone wrote one once, but was that for the older log files?
d
k
+2
  • 4
  • 19
  • 129
Best practise: restart after deployment?
d

Domitnator

over 1 year ago
Hi Everyone, We are deploying our Umbraco 13 website to Microsoft Azure (as a App Service on Linux) which works perfectly well right now. But, i am wondering if i should restart the application after the deployment. I heard some people say this would be wise because of some rare caching issues, but is this still the case for Umbraco 13? I'd rather not restart the application as this takes time (i know i could tackle this with deployment slots). We do use uSync and Azure Blob Storage. What are your toughts on this topic?
d
d
+3
  • 5
  • 10
  • 129
How content caching works
d

Danci

about 1 year ago
Hello! I have a question that might be quite basic, but I can't find a precise description, so I apologize if there is any obvious documentation for this. I'm curious about how content caching works in Umbraco 13.1.0. From what I've found, there's an in-memory cache and a local cache. What processes does Umbraco go through exactly? I assume it first checks the in-memory cache, and if it doesn't find the data there, it moves to the local cache. What happens if the data isn't there either? Does it then query the database? I looked at the source code (https://github.com/umbraco/Umbraco-CMS/releases/tag/release-13.0.1), but I didn't find any fallback solution indicating it would query the database. I'm also interested in when the in-memory cache and the local cache are populated. Is there a way for me to request the keys or contents of these caches? Thank you!
d
s
  • 2
  • 9
  • 128
Umbraco 15, deploy on Ubuntu 24, missing Microsoft.AspNetCore.Server.IIS
b

Blago Culjak

11 months ago
This is error when upgraded site from v14 to v 15 upgrading: > Nov 18 17:08:37 vmi1813232.contaboserver.net systemd[1]: Started greencode.service - Green Code service. > Nov 18 17:08:40 server.net greencode[18474]: Unhandled exception. System.TypeLoadException: Could not load type 'Microsoft.AspNetCore.Builder.IISServerOptions' from assembly 'Microsoft.AspNetCore.Server.IIS, Version=9.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddWebServer(IUmbracoBuilder builder) > Nov 18 17:08:40 server.net greencode[18474]: at Umbraco.Extensions.UmbracoBuilderExtensions.AddBackOffice(IUmbracoBuilder builder, Action`1 configureMvc) > Nov 18 17:08:40 server.net greencode[18474]: at Program.$(String[] args) in /home/github-runner/actions-runner/_work/GreenCode/GreenCode/GreenCode/Program.cs:line 17 Program.cs, line 17:
builder.CreateUmbracoBuilder()
    .AddBackOffice()
    .AddWebsite()
    .AddDeliveryApi()
    .AddComposers()
    .Build();
Is there some dependency that is forcing us to use IIS everywhere?
b
s
+2
  • 4
  • 10
  • 127
Previous192021Next

Umbraco

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

Powered by