https://discord.umbraco.com
Join Discord
Possible to get nodes in code behind?
t

TigerMan

over 1 year ago
Hi I have a class that does NOT inherit any Umbraco controllers or anything when using Umbraco 13. What I need to do is get a list of nodes using C# code inside this class. I know how to get this by using Razor but I can't figure out which classes/interfaces I need to pull the data from the parent node. Does anyone know if this is possible? Thx
t
k
  • 2
  • 2
  • 29
Versioning philosophy
k

Kaspar Boel Kjeldsen

over 1 year ago
Can anyone fill me in on what the philosphy is for Umbraco for when something is alpha, beta and Release Candidate? It's not a jab at anyone, but for me personally it feels wildly inappropriate to give something the state of release candiate while core functionality is missing. We're on RC2 of Umbraco 14 and you can still not add a blocklist or blockgrid and get your content all the way out to a view, and I can click several places in the backoffice and get a "Not implemented" alert. To quote this blogpost (https://umbraco.com/blog/umbraco-14-release-candidate/) "This release is broadly speaking feature complete" This feels like a bold claim when I can't use blocklist, blockgrid, webhooks, none of the default data-types are available unless you yourself open them and hit save, and preview, a -dare I say- core functionality of the CMS won't even be available on release? Everyone is doing a fantastic job on Umbraco and 14 especially, and I'm very excited for the modern backoffice and full of appreciation for anyone working on it, but the release labeling feels like it's decided by a calendar and not the state of the product and it is very hard to explain that even though it's the -second- release candidate, it is by no means near being ready for release.
k
j
+4
  • 6
  • 15
  • 29
Click-Jacking Protection and Content/MIME Sniffing Protection
o

Osman Coşkun

over 1 year ago
I apply added the suggested codes below as Umbraco documentation to program.cs. But this does not help fixing security issues for Click-Jacking Protection & Content/MIME Sniffing Protection. Do i miss something? app.Use(async (context, next) => { context.Response.Headers.Append("X-Frame-Options", "SAMEORIGIN"); await next(); }); app.Use(async (context, next) => { context.Response.Headers.Append("X-Content-Type-Options", "nosniff"); await next(); });
o
m
  • 2
  • 2
  • 29
Multilingual site with domain configured on another level
m

Maarten

over 1 year ago
Hi, I've got the following setup in my content tree: - My site - Home - Settings I've configured cultures and hostnames on the "Home" item of the site, as that's the first page and all other pages are underneath home. The settings item isn't tied to an domain, but can vary by culture. When saving this item i get the following message "The root node {Settings} was published with multiple cultures, but no domains are configured, this will cause routing and caching issues, please register domains for: {nl-nl, en}" Is this an actual issue?
m
c
  • 2
  • 2
  • 29
How to use SmidgeHelper.RequiresCss
s

supernaut242

over 1 year ago
I'm trying to inject a css file from a partial using Smidge, but I can't seem to get it to work. In my master template I have
@await SmidgeHelper.CssHereAsync()
and in my
Footer.cshtml
partial I have:
SmidgeHelper.RequiresCss("~/css/footer.css");
This does not inject the css in the master template as I expected. If I add the RequiresCss code in the master template itself it works, but not in the partial. I'm new to Umbraco (and .net) and what I'm trying to achieve is to only import the used CSS files on each page, I have understood that this is the preferred method for this?
s
a
+2
  • 4
  • 9
  • 29
Error creating new Umbraco 13 site using with Models Builder
m

Matt Alexander

almost 2 years ago
Can anyone shed any light on this... Whenever I create (via Visual Studio) a new Umbraco project (V13.1) and configure Models Builder (SourceCodeManual) I get the following error: **An unhandled exception occurred while processing the request. ModelBindingException: Cannot bind source content type Umbraco.Cms.Infrastructure.PublishedCache.PublishedContent to model type 'MyDocType'** It happens on every new install (existing projects are fine) regardless of what I do. I can create a single simple doc type with 1 text property and no other doc types in the system and I get the error. Models are created successfully and I can see they're all correct in the source code if I switch the view page to use IPublishedContent the page works fine but as soon as I switch it to the generated model it throws an error. Also, I can do (IPublishedContent) Model as MyModelClass and this variable will be null. All classes and namespaces are correct, no errors are listed in the error list, if I copy an existing project into this solution I get the same error, if I create a new solution from scratch I get the same issue I have tried everything I can think of
m
  • 1
  • 1
  • 29
HELP: Integrating Azure Active Directory B2c With Umbraco's Users And Members
w

webjaved

about 2 years ago
Morning everyone, I am looking to configure SSO on an Umbraco 8 Cloud project for the client, they want to use Office365 to be able to log into the CMS. I was sent this guide from our point of contact at Umbraco: https://skrift.io/issues/integrating-azure-active-directory-b2c-with-umbraco-s-users-and-members/ The client has come back with a few questions I am hoping the amazing community of Umbraco can assist us with. This is the feedback from the client with screenshots provided. See the below link of the thread opened on the forum. https://our.umbraco.com/forum/using-umbraco-and-getting-started//112685-help-integrating-azure-active-directory-b2c-with-umbracos-users-and-members Thank you, Javed
w
s
+3
  • 5
  • 63
  • 29
Any gotchas getting Perplex Ai Assistant to work with latest 12.1.2? Keeps getting "The page contain...
k

Kenneth Solberg

about 2 years ago
Any gotchas getting Perplex Ai Assistant to work with latest 12.1.2? Keeps getting "The page contains no relevant text, cannot generate metadata".
k
s
c
  • 3
  • 14
  • 29
Umbraco rollback, can't see all version?
p

Pekdon

9 months ago
Im new to the rollback feature, but I cannot explain this. Looking at the history for piece of content i can see this: (Picture 1) it tells me there was a change made on february 4 2025, but when going to the Rollback menu i only see this: (picture 2) What gives? https://cdn.discordapp.com/attachments/1339535694829195274/1339535695219523584/image.png?ex=67af1355&is=67adc1d5&hm=10d9119526d994a2c2ab9d3965a9281f8113c22d3b9a3bfc2371c7f2696334c2& https://cdn.discordapp.com/attachments/1339535694829195274/1339535695508934698/image.png?ex=67af1355&is=67adc1d5&hm=3fe990a40cf318039e16bb57868e98fbd67cc31eab2bdf78460f4e63a02eedf9&
p
k
s
  • 3
  • 3
  • 28
production mode but without https
m

Mikkel Johansen

10 months ago
Our hosting environment is hosting our Umbraco without https. The https is handled by K8S. Is it possible to run Umbraco in "Production" mode but with UseHttps=false? If I try I get a message that says Umbraco can only run in Production mode when UseHttps is true. https://cdn.discordapp.com/attachments/1331643009221136484/1331643009334247584/image.png?ex=67925cb2&is=67910b32&hm=1653d0788b5fb32949dd807f3eae040b5c7099b6fa0df387002e306246b2ad06&
m
s
+2
  • 4
  • 27
  • 28
Previous707172Next

Umbraco

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

Powered by