https://discord.umbraco.com
Join Discord
Umbraco 7 to 13 via uSyncMigrations, heavy DTGE use, any hints and tips?
j

Jason

over 1 year ago
Ahoy lovely Umbraco Discord community, I just discovered a site that I thought was on v8 is actually on v7 😱 so I need to migrate it sharpish. As it's on v7 uSyncMigrations looks mighty tempting but I've yet to use it. I wondered if anyone with experience in this could share any hints and tips? I'm specifically interested in how well the DTGE to Block Grid migration works, as this site almost exclusively uses DTGE for its content. Callum mentioned that I should tag you @Lotte , as you've had some experience in this?
j
l
+6
  • 8
  • 42
  • 568
How to redirect to another URL?
t

TigerMan

over 1 year ago
Hi I thought this might have been easy but struggling to redirect to another page in Umbraco which I know exists. I have a View which is decorated as below using(Html.BeginUmbracoForm(".....") { Controls in here } I then have my controller inheriting from SurfaceController. At the end of this void method I have added some code to redirect to another Umbraco page. Currently I have RedirectToPage("/site/thanks"); When I click the button on the View, the page disappears but the URL remains the same as the current page. What could I be missing? Thanks
t
s
  • 2
  • 9
  • 562
How to get the correct root node for a mutisite Umbraco install?
m

Matthew Alexandros

over 1 year ago
Up until now my instance of Umbraco only housed one website so to get the root node I would simply use the code: var context = _umbracoContextAccessor.GetRequiredUmbracoContext(); var site = context.Content.GetAtRoot().First(); But now I will be adding adtional sites to the instance which will be using the same doc types and templates as the existing site. So how can I get the correct root node for the site the user is visiting?
m
j
  • 2
  • 4
  • 545
[Solved] v14: Using custom authenticated controllers with the new backoffice.
k

Kevin Jump

over 1 year ago
Hi, but of a big ask this one - but wondering if anyone can give me pointers on using Authentication with your own controllers and the new backoffice ? I have a (very nearly) working demo of a dashboard, using a context, and repository, and a datastore and a openapi generated resource to talk to a newly constructed API (using the management api structures, showing its own swagger) to get some simple info from the server (in my case here, time and date as strings). https://github.com/KevinJump/TimeDashboard/tree/master this works !! when the
[Authorize(Policy = "New" + AuthorizationPolicies.BackOfficeAccess)]
tag is removed from the controller (so it has no auth!). put it on, and the dashboard, does 'your session has expired' I have gone down the road of replicating some of the extra swagger stuff from the core, https://github.com/KevinJump/TimeDashboard/blob/master/TimeDashboard.Client/Configuration/ConfigureSwaggerGenOptions.cs (replacing the filters with ones that look for 'time' instead of 'management' for the API) but i suspect i am either missing something obvious, or this isn't the way to do this. anyone, any clues ? https://cdn.discordapp.com/attachments/1201903877721698395/1201903878304714783/image.png?ex=65cb8336&is=65b90e36&hm=61812c01435b7be7c7e3caf50ff9c27311838a80170d47d6158af10249b1c541&
k
n
+4
  • 6
  • 38
  • 531
Creating Blockgrid/Blocklist programmatically
t

TigerMan

over 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
  • 527
Dotnet Pack throwing staticwebassetts.build.json file missing.
n

Nik

12 months ago
Hi All, I'm trying to pack up a nuget package locally (as a test), the package is an RCL with static assets in it, targetting dotnet 8 and Umbraco v13. The Build works find, and I can directly reference the project and it works, but when I do
dotnet pack
from the CLI I get the following error:
..dotnet\sdk\8.0.402\Sdks\Microsoft.NET.Sdk.StaticWebAssets\targets\Microsoft.NET.Sdk.StaticWebAssets.Pu
blish.targets(57,5): error : Manifest file at 'obj\Release\net8.0\staticwebassets.build.json' not found. [..pathto/project.csproj]
I've tried bumping my dotnet sdk from 8.0.400 to 8.0.402 (the latest) and that's not worked. If I use the "pack" feature in visual studio it works, but the CLI doesn't.
n
m
  • 2
  • 8
  • 513
v12 => v13 Startup.cs & Program.cs
c

Chriztian Steinmeier

over 1 year ago
Hi there, I've recently upgraded an Umbraco Cloud project from v12 to v13 (using the guide here: https://docs.umbraco.com/umbraco-cloud/product-upgrades/major-upgrades) The guide does not mention that (as far as I can see) an Umbraco 12 project has both
Program.cs
and
Startup.cs
, whereas v13 only has a
Program.cs
... now, everytime I find a "How to do [XYZ] in v13" article, it references methods in
Program.cs
that don't exist in my project's file... are the upgrade docs I followed missing a step to upgrade those files, or is that not expected?
c
s
+4
  • 6
  • 17
  • 486
Umbraco 14 Block grid editor customisation
m

mehdimiah_

about 1 year ago
Hello friends, i am trying to render the content that is inside of the block grid within the preview. https://umbraco.com/blog/deep-dive-block-grid-editor-part-1/ i am following the above, but i cant seem to get the content displaying correctly. i know the tutoiral is for umb 11 so im wondering if it needs to be done differently for umb14? in an ideal world, i just want the editor view to provide a good idea of how the front end will be laid out. can anyone help? https://cdn.discordapp.com/attachments/1267426827073355826/1267426827316494368/image.png?ex=66a8beb7&is=66a76d37&hm=44234f1c03afab661ad15f4ba0b03c1d43e227f4a31cb2457f9ed077fc454518& https://cdn.discordapp.com/attachments/1267426827073355826/1267426827685597238/image.png?ex=66a8beb7&is=66a76d37&hm=236ad2fb9b76bae9e7b2d112993e87b7bb8acbc3941c640efd0230542d838b24& https://cdn.discordapp.com/attachments/1267426827073355826/1267426828021399604/image.png?ex=66a8beb7&is=66a76d37&hm=0d5f7500071e61f4aac85821b96644f5f3b79d2d98652b9caba664de32f39066&
m
m
+5
  • 7
  • 173
  • 477
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
  • 476
Umbraco 13 fresh install not installing
s

Sean Tarrant

about 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
  • 475
Previous123Next

Umbraco

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

Powered by