https://discord.umbraco.com
Join Discord
Umbraco 13 fresh install not installing
s

Sean Tarrant

over 1 year ago
Created a fresh Umbraco 13 instance. Ran Debug and the install screen keeps looping with 503 umbraco/GetSetup angular issues. https://cdn.discordapp.com/attachments/1255474487756062813/1255474488095670365/image.png?ex=667d433b&is=667bf1bb&hm=b7bf2a90a0aeb334ea11a2d752977a3f003e6a0e2b4209ab38ef0e290ec7028d&
s
r
+2
  • 4
  • 5
  • 508
Dockerfile for Umbraco 13
s

Skibz

over 1 year ago
Does anyone have a good working example of a Dockerfile for Umbraco 13. I'm having all kinds of issues with permissions and the site not booting. Anything I've searched has been older versions. Also, I'm targeting Linux.
s
c
+3
  • 5
  • 16
  • 505
Cleaner way to get parent node
t

TigerMan

over 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
  • 497
New Umbraco 13 site - cannot log in
m

MobyDog

almost 2 years ago
First u13 site locally, .net 8 set up, just installed u13 and can see the front end fine but cannot log into the backoffice. Just keep getting "oops! we couldn't log you in. Please check your credentials and try again". I'm 100% sure my credentials are correct, I still have the commands with which I set it up. Is this an error which is actually referring to something else, ie, not actually a credentials issue? Think the db is set up correctly, like I say, I can see the front end ok. I have used code generated by PSW Codeshare - initially with uSkinned, uSync, SQL server etc, and then just a plain vanilla version using SQL Lite and neither backend worked. Is there something I'm missing? Thanks!
m
s
  • 2
  • 5
  • 491
[Solved] Block List Multi-Url Picker label - how to get picked node name?
r

Rich G

over 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
  • 477
Upgrading to Umbraco 13
j

Josef Henryson

almost 2 years ago
I am trying to upgrade to U13 from latest 12 but I run into heaps of issues. After upgrading VS multiple times and installing dotnet 8.0 SDK etc I try to run my project. It wants to find the source for System.Globalization\GlobalizationMode.cs for debugging. Have you experienced similar problems and managed to proceed with the upgrade? What did you do in that case? Cheers and happy X-mas!
j
a
s
  • 3
  • 11
  • 477
Best way to restrict public access to Umbraco panel
b

Berhan Soylu(Clockwork-Gold-TR)

over 1 year ago
Hi there, What's the best practice to restrict umbraco backoffice to public? We found blocking /umbraco#/ in URL but not all of the firewalls capable of doing this.
b
m
+5
  • 7
  • 37
  • 462
Download file(s) from Media
j

jacksorjacksor (Richard Jackson)

over 1 year ago
Hi! What would be the best way (/does anyone have a snippet) for downloading a file from the Media library, given that we've identified the URL for that file - i.e.
var myMediaUrl = "/media/k3sd2q2z/myFile.pdf"
. Intended use is for a Controller and/or button form submission (i.e. press the Download button, download the file). Bonus points for having multiple media file URLs, compressing them all into one .ZIP file and downloading that .ZIP file. TIA! Rich Umbraco v13
j
a
+2
  • 4
  • 12
  • 457
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
  • 445
How do I create the SQLite database?
t

TackleMcClean 🏅

almost 2 years ago
For Umbraco 13 I am using this for my connection string:
"ConnectionStrings": {
    "umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Private;Foreign Keys=True;Pooling=True",
    "umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite"
  },
However when I start with
dotnet run
, I get:
[14:17:26 WRN] Configured database is reporting as not being available.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'.
The folder
umbraco/Data
is fully writable. How do I make sure the database exists?
t
j
  • 2
  • 2
  • 437
Previous234Next

Umbraco

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

Powered by