https://discord.umbraco.com
Join Discord
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
  • 621
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
  • 619
Umbraco 7 to 13 via uSyncMigrations, heavy DTGE use, any hints and tips?
j

Jason

almost 2 years 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
  • 606
Dotnet Pack throwing staticwebassetts.build.json file missing.
n

Nik

about 1 year 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
  • 603
How to get the correct root node for a mutisite Umbraco install?
m

Matthew Alexandros

almost 2 years 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
  • 571
[Solved] v14: Using custom authenticated controllers with the new backoffice.
k

Kevin Jump

almost 2 years 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
  • 556
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
  • 529
Umbraco 14 Block grid editor customisation
m

mehdimiah_

over 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
  • 525
Optimal settings for Smidge (Runtimeminification) in local dev and production
c

CodeSharePaul

about 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
  • 513
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
  • 511
Previous123Next

Umbraco

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

Powered by