https://discord.umbraco.com
Join Discord
Creating Blockgrid/Blocklist programmatically
t

TigerMan

about 1 year ago
Hi I've been looking into the ContentService for Umbraco 13 and there's an example of creating a simple page programmatically but I can't find any examples of creating a Blockgrid or Blocklist programmatically. I have a document type which contains a Blockgrid/list which has a simple rich text editor to test against (and an image if this makes any difference). How could I save data to this Rich text box when it contains a Blockgrid/list? Thank you
t
j
c
  • 3
  • 4
  • 407
Select media "Upload" button issue - Greyed out
k

knightyknight

over 1 year ago
We are experiencing an issue with image uploads in the back office. When I try and upload an image to an image field by clickng the upload button within the picker slide-in dialog, I cannot because it is greyed out. This is even after upgrading from Umbraco 11 to 13 and it's also a bug we saw on a previous totally seperate Umbraco 7 installation. Can anyone advise on this? The image field does have a start node, if that helps with diagnosis? Thanks https://cdn.discordapp.com/attachments/1214170059182972999/1214170059476312074/image.png?ex=65f822fc&is=65e5adfc&hm=2db0599b9ba7d45e774e1199799991e43f75af8336e1d141891eb0d5770bdd21&
k
a
+2
  • 4
  • 14
  • 402
Cleaner way to get parent node
t

TigerMan

about 1 year ago
Hi I have the below code public IPublishedContent GetPage(guid id) { var umbracoHelper = _umbracoHelperAccessor.TryGetUmbracoHelper(out var h); Return h.Content(id); } When I need a page I call GetPage(1234-5678-....) and the page is returned. This page could be 5 levels down. So the only way I'm able to get the parent is by writing something like GetPage(1234-5678-....).Parent.Parent.Parent Until I reach the homepage. That code looks ugly by adding multiple parents at the end of the GetPage function. Is there a better way to get the parent node for the site when using C#?
t
s
+3
  • 5
  • 9
  • 384
Content Delivery API properties missing with expand
c

Conner

over 1 year ago
I am new to umbraco and trying to build a site as a learning project. I am trying to use
?expand=all
on the content api but properties of some nested content is empty. is about 4 levels deep in response object
c
t
p
  • 3
  • 33
  • 383
Umbraco 13 logs
d

Dan

over 1 year ago
Hi, I've upgraded a local site from v12 to 13. I'm now trying to upload this to the server. The site is hosted on a third-party Windows VM rather than cloud, so there are no devops pipelines, only an FTP service. The upgraded site runs locally and I've updated the publish profile to use .net8.0 as the target framework (kept all other settings the same, such as Target Runtime: Portable etc). I deleted most of the files from the destination server as I'd read that stray v12 files can cause problems, but having then uploaded the new v13 files the site is throwing a 503 error. In v12 I think the logs were in
umbraco/logs
but I notice that there has been no
umbraco
folder created in the root of the published files. So my initial question is firstly where should the log files be on a v13 site? Should the
umbraco/*
folder structure have been created by the publish task? I tried manually creating
umbraco/Logs
and
umbraco.Data
on the server but that doesn't seem to make any difference. Thanks for any help.
d
a
+3
  • 5
  • 13
  • 383
Optimal settings for Smidge (Runtimeminification) in local dev and production
c

CodeSharePaul

almost 2 years ago
Hi all, We've been having some issues with smidge in local dev. When working on css changes, they don't get picked up unless we do a rebuild which really slows down the workflow for our front end devs. Please can you help me work out what the optimal settings for smidge (RuntimeMinification) should be for local development without needing to rebuild and for when the site is published? Kind regards Paul
c
m
+4
  • 6
  • 62
  • 380
Using Our.Umbraco.GMaps in Umbraco 10 and above
c

CodeSharePaul

over 1 year ago
Hi all, can anyone give me an example on how to render a google map using Our.Umbraco.GMaps in modern Umbraco websites please? I've done all the setup and added the data type and property to the page etc. I just don't know how to render it on the page.
c
c
+3
  • 5
  • 8
  • 374
Umbraco 12 RTE pasting from Word
j

jonroberts

over 1 year ago
In our umbraco 8 site when we paste from Word it seemed to automatically remove the Word markup tags and keep the normal styles such as Bold, Italic etc. In 12 this doesnt seem to be the case. If we use Clear Formatting it removes the Bold, Italic styles too. Any ideas if there is a setting in 12 that we can implement that will allow us to paste direct from Word to the RTE keeping the normal styles and removing the Word mark up automatically?
j
d
+6
  • 8
  • 24
  • 364
[Solved] Block List Multi-Url Picker label - how to get picked node name?
r

Rich G

about 1 year ago
I'm trying to show the value of a Multi-URL picker from a block list. I've looked at @Joe Glombek docs here (thanks Joe! https://joe.gl/ombek/blog/umbraco-angularjs-filter-cheat-sheet/ I can get the 'title' from the picker by using myURLPicker[0].name However I want the actual node that's been picked, the 'link' In the API it comes back as 'destinationId', but that doensn't work here. Any ideas please?
r
l
+2
  • 4
  • 17
  • 360
Smidge - Configuring bundles in V13
d

Dean Leigh

over 1 year ago
How do we configure bundles now? I was adding config in Startup.cs e.g.:
services.Configure<SmidgeOptions>(options =>
            {
                options.DefaultBundleOptions.ProductionOptions.FileWatchOptions.Enabled = true;
                options.DefaultBundleOptions.ProductionOptions.SetCacheBusterType<AppDomainLifetimeCacheBuster>();
                options.DefaultBundleOptions.ProductionOptions.CacheControlOptions.CacheControlMaxAge = 12000;
            });
But am no longer using Startup files. I have tried in the notification handler and I'm down to a single syntax error, undoubtedly a terrible way to do it but I'm trying to learn the new way as I go. FWIW other than this I have Smidge minifying and bundling as it should do ht @AaronSadlerUK https://cdn.discordapp.com/attachments/1212081950794194994/1212081951251501166/image.png?ex=65f08a48&is=65de1548&hm=8051eefc44db1ed4afb92c0c39c87868a57c0f9b993fe9fefd52c94b114c2c01&
d
s
  • 2
  • 9
  • 355
Previous234Next

Umbraco

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

Powered by