https://discord.umbraco.com
Join Discord
Fresh v13 install on Arm64 (Surface Pro 11)
b

Barry Fogarty

about 1 year ago
Morning! I have a shiny new Surface Pro 11 with the Snapdragon Arm64 chip and I'm having difficulty installing v13 on it. The site builds and boots, but I get a 503 Service Unavailable console error in the
GetSetup
Umbraco API call. Nothing relevant in the Umbraco logs. This happens before the install form appears on the frontend. Interestingly a v14 install works fine, as does an unintended install via
dotnet new umbraco
e.g. the latest LTS with Clean Starter Kit example from Paul Seal's excellent package script writer: https://psw.codeshare.co.uk/?TemplateName=Umbraco.Templates&TemplateVersion=LTS&Packages=&UserEmail=admin%40example.com&ProjectName=MyProject&CreateSolutionFile=true&SolutionName=MySolution&UseUnattendedInstall=true&DatabaseType=SQLite&UserPassword=1234567890&UserFriendlyName=Administrator&IncludeStarterKit=true&StarterKitPackage=clean&OnelinerOutput=false&RemoveComments=false Could be a bug and I'll need to log an issue, but interested to hear if anyone else has tried this on Arm64? It should be the same as what has worked on Mac/Linux for a while right? Could it be to do with the NodeJs version installed on my machine? Thanks!
b
s
+8
  • 10
  • 50
  • 132
Get document of a specific type
g

gregor.tusar

7 months ago
I created a document of a specific type that contains a configuration for some component. What is the best way to get this document out of the content tree? Checking the docs here: https://docs.umbraco.com/umbraco-cms/reference/querying left me confused a bit. For now I went with the following apporach:
var config = umbracoHelper.ContentAtRoot().DescendantsOrSelfOfType(MySpecialConfiguration.ModelTypeAlias).FirstOrDefault() as MySpecialConfiguration;
I know that there is only one config of this type so
FirstOrDefault()
is not problematic here. Is traversing the tree like that very consuming? Is it the correct way of getting the config ?
g
r
+3
  • 5
  • 14
  • 131
Block list label using UFM - Accessing nested properties
k

kirin-808

9 months ago
Hi there! We've just upgraded to Umbraco 14.3 and I'm trying to figure out how to access nested properties of field values for block list items. I'm using a color picker and used to be able to access what I needed with {{ backgroundColor.label }} but since the upgrade, the farthest I could go is with {=backgroundColor} which displays "[object Object]" as the label ( {=backgroundColor.label} displays an empty comment propably because it doesn't exist or has a null value).
k
k
k
  • 3
  • 5
  • 131
Getting all cultures of umbraco site
m

mehdimiah_

about 1 year ago
Hi friends so ive created a service that will essentially return all urls of the site upon request via api (i noticed you cant just get all page routes via delivery api) the issue is we will be going multi lingual, therefore i need to also return all of the routes for pages which are under a different culture. so i am able to do this manually by hard setting the culture (this is test code) _variationContextAccessor.VariationContext = new VariationContext("fr"); routes = _publishedContentQuery.Content(ids).Select(item => item.Url()).ToList(); but what i want to do is possibly get ahold of all available cultures in the cms then i can do this dynamically? unless someone has a better way of returning every node url including all cultures my code essentially - gets all ids of content from external index - gets all published content using a list of guids obtained from the index - returns all page routes in a list which is returned to caller
m
a
j
  • 3
  • 3
  • 131
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
  • 130
Hide Block Element Property in specific Block List
d

Danine Noble

about 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
  • 130
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
  • 129
Is it possible to move a field to another tab?
t

TigerMan

over 1 year ago
Hi I have a field under tab 1. I now want to move that field to tab 2 but retaining all the existing data. Is this possible as I don't see any option? Thanks
t
k
m
  • 3
  • 2
  • 129
Umbraco Login redirect - v13.4
s

SiempreSteve

about 1 year ago
Noticed something has broken between v10 and v13. If you hit a url to the back office it used to set a redirectUrl param and hten on successful login redirect the editor to where they were going. Used this to provide a front end guard on non-production sites. (e.g. redirecting users back to the correct page on the stage / uat site after authenticating them as an Umbraco user). This seems to be broken. Has anyone got a workaround for this?
s
o
t
  • 3
  • 3
  • 127
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
  • 127
Previous181920Next

Umbraco

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

Powered by