https://discord.umbraco.com
Join Discord
Faceted search in v10+ with examine
s

skttl

almost 2 years ago
How are people doing faceted search in new Umbraco projects? I've used Bobo before, but doesn't look like it's updated for net core.
s
d
+6
  • 8
  • 102
  • 511
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
  • 511
[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
  • 484
How to redirect to another URL?
t

TigerMan

about 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
  • 459
Dockerfile for Umbraco 13
s

Skibz

about 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
  • 455
v12 => v13 Startup.cs & Program.cs
c

Chriztian Steinmeier

about 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
  • 441
Umbraco 14 Block grid editor customisation
m

mehdimiah_

11 months 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
  • 435
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
  • 429
New Umbraco 13 site - cannot log in
m

MobyDog

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

Nik

9 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
  • 425
Previous123Next

Umbraco

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

Powered by