https://discord.umbraco.com
Join Discord
Umbraco 13.0.3 Models builder not generating models
s

Sian Evans

almost 2 years ago
I created a new site yesterday and noticed that I was getting the "CS0234 The type or namespace name 'ErrorPage' does not exist in the namespace 'Umbraco.Cms.Web.Common.PublishedModels' (are you missing an assembly reference?)" message. I identified that template models were no longer generated, yet this morning, the site generated models for compositions I had created. Has anyone experienced this and can point me in the direction of what I need to look at in logs to identify the problem? https://cdn.discordapp.com/attachments/1205511997861527572/1205511998058668062/Screenshot_2024-02-09_134348.png?ex=65d8a389&is=65c62e89&hm=1fabd84ca77ba172a94fdc5c4f97e1839c815d449000c4b7df1ebac9f8a828dd& https://cdn.discordapp.com/attachments/1205511997861527572/1205511998305996880/Screenshot_2024-02-09_134509.png?ex=65d8a389&is=65c62e89&hm=48609da3743e59e405836ccfd4a3803ce224affce522ad6d9201286c0eeca2ba&
s
s
  • 2
  • 15
  • 149
[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
  • 148
NuCache + Redis Cache for automatic scale out
o

Owain Jones

about 2 years ago
Hi all, has anyone tried using Redis Cache (or another distributed cache) to store the Memory Cahce/NuCache when auto scaling out? One of the issues with scaling out an Umbraco Azure web app instance is that each new instance will slam the database as it builds it's Memory/NuCache, so moving the memory cache into a distributed cache would hopefully alleviate this issue. (at least in theory lol) Has anyone tried this or something similar? Also posted on Our: https://our.umbraco.com/forum/using-umbraco-and-getting-started//112967-nucache-plus-redis-cache-for-automatic-scale-out
o
s
+2
  • 4
  • 4
  • 148
Block Clipboard - When do we get it back?
k

Kaspar Boel Kjeldsen

about 1 year ago
I'm sitting on version 14.2-rc and am wondering - when do I get the ability to copy blocks to the clipboard back? The button is there - but to my knowledge there is still no way of copying anything? First I'd love to know if anyone knows when this feature is slated to come back, because we've paraded it around town in v13 to all our customers. Secondly, I would love that when Umbraco ships without features that experienced users expect - at least remove the button until it's ready? https://cdn.discordapp.com/attachments/1272451228621602847/1272451228818997279/image.png?ex=66bb060d&is=66b9b48d&hm=c96cda592515615a06a25f3ff57a6b17d0daa8cd614ae163344b0bd04b697b48&
k
r
h
  • 3
  • 5
  • 147
How to get block list from icontent?
a

ahwm

12 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
  • 145
How content caching works
d

Danci

over 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
  • 145
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
  • 145
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
  • 144
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
  • 144
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
  • 143
Previous181920Next

Umbraco

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

Powered by