https://discord.umbraco.com
Join Discord
Get block list item in surface controller
i

Ian Robinson

over 1 year ago
Hi, In a surface controller if you have the Guid of an item in a block list, can you retrieve it easily and cast to a model type? I've tried using ContentService.GetById but it returns null when I pass in block list item's Guid. I want to perform some particular tasks based on the property values held in the block list item. Would appreciate any help to point me in the right direction.
i
l
  • 2
  • 3
  • 83
Just installed a clean 13.5.2 environment and see a lot of vulnerability messages
r

Richard Soeteman

10 months ago
Just installed a clean environment and see the following messages directly warning NU1903: Package 'Lucene.Net.Replicator' 4.8.0-beta00016 has a known high severity vulnerability warning NU1903: Package 'System.Text.Json' 8.0.4 has a known high severity vulnerability 13.5.3 out soon?
r
d
+7
  • 9
  • 15
  • 82
What's the alternative to SendingContentNotification?
r

RasmusL

8 months ago
These [docs](https://docs.umbraco.com/umbraco-cms/reference/notifications/editormodel-notifications) demonstrate a solution to what I want to achieve. Only problem is, that
SendingContentNotification
seems to be deprecated in Umbraco 15. Or am I mistaken? Overall I want to > [...] manipulate the model used by the backoffice before it is loaded into an editor. to get "computed" properties. E.g. if a doc type has the integer property
A
, then a boolean computed value
A > 0
is loaded.
r
s
  • 2
  • 3
  • 81
Could not load form with id 00000000-0000-0000-0000-000000000000
r

Rob Schall

over 1 year ago
Version: Umbraco 12 We have an element that accepts a Form Selector and a Theme Selector. We then render it in a blocklist using the following syntax:
@(await Component.InvokeAsync("RenderForm", new { formId = Model.Form, theme = Model.Theme, includeScripts = false }))
This does render the form as expected, however, when we submit it, we get the following error:
System.InvalidOperationException: Could not load form with id 00000000-0000-0000-0000-000000000000
   at Umbraco.Forms.Web.Controllers.UmbracoFormsController.HandleForm(FormViewModel model)
   at lambda_method826(Closure, Object, Object[])
We've also tried the following syntax
<umb-forms-render form-id="@Model.Form.Value" theme="@Model.Theme" exclude-scripts="false" />
This resulted in the same issue (displays fine, but fails on submission with the same error). When we use the macro inside the richtext editor, it works without issue. I've removed the only custom form workflow we had going to confirm that wasn't affecting anything. Any thoughts what else could cause this?
r
l
  • 2
  • 6
  • 81
[Solved] File Upload
c

Craig100

about 2 years ago
Does Umbraco give us any help when uploading files from an input type="file"? I'm happy saving the file once I've got hold of it, but trying to get my head around how to get it off the user's machine. Currently I only seem to get a string which is the file name, no path to stream it from nor file object. I feel I'm missing something somewhere. It's just a .net core Html.BeginForm posting to a Surface Controller.
c
a
  • 2
  • 26
  • 81
Content Delivery API - Missing page
n

Nitesh

over 1 year ago
Using Umbraco 13.1.1 Doing a fetch for all children and its missing a page from its Json. No log errors, when I look at the json, the total says 13 items but its only bringing back 10. URL im using to test is https://localhost:44334/umbraco/delivery/api/v2/content?filter=contentType:contentPage&fetch=children:SITENAME Any ideas how I can figure out this issue?
n
l
  • 2
  • 1
  • 80
EditorModelEventManager.SendingContentModel in v13?
j

jonroberts

over 1 year ago
Is this still avilable to use in version 13? public void Initialize() { EditorModelEventManager.SendingContentModel += EditorModelEventManager_SendingContentModel; }
j
c
  • 2
  • 2
  • 80
change umbraco backoffice path in v13
b

Bishal Tim

about 1 year ago
I am trying to change the backoffice path ('/umbraco/...') so i can accesse Umbraco using a different path like "mysite/something"
b
r
  • 2
  • 2
  • 79
Configure hostnames for Umbraco 13 install
l

Lewis Heaton

over 1 year ago
I'm trying to setup 2 sites under one Umbraco 13 install, so site-a.com and site-b.com, each having a 'home' page in the roof of Umbraco content. I had this working in Umbraco 7 many moons ago, but this is the first time I have set this up in many years. I have tried a few things, nothing has worked. In an ideal world, I would like my local dev setup to be the same as how i have it configured on live, maybe with test- at the start of the url. Does anyone have any guidance on how exactly i can get this working, any fairly recent articles? I found this https://docs.umbraco.com/umbraco-cms/tutorials/multisite-setup but it seems specific to Umbraco cloud, which were not using in production.
l
r
k
  • 3
  • 6
  • 79
How to get info from a programmatically saved page?
c

Craig100

over 1 year ago
V13.2.2 In a WorkFlow I've saved a new page and want to get the URL of one of it's images, to send of to an external API, before the Workflow completes. So far I have this:-
var pageRef = _contentService.SaveAndPublish(advertiserPage);

        GuidUdi adPageUdi = pageRef.Content.GetUdi();
        var adPage = _contentService.GetById(adPageUdi.Guid);  // <--- Seems to be ok so far!
        
        var logoImageRef = adPage.GetValue("logoImage") as Udi;  // <--- I get Null here although the image exists in the saved page
        IMedia logoImage = _mediaService.GetById(logoImageRef.AsGuid());
I've been round and round this and can't work it out. Actually I could also do with the URL for the page itself as well. Any pointers would be appreciated. Thanks.
c
j
j
  • 3
  • 9
  • 79
Previous272829Next

Umbraco

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

Powered by