https://discord.umbraco.com
Join Discord
How to minify and compress Assets (css,js) when publish front-end umbraco cms?
m

moondoan

11 months ago
I want to automatically minify the CSS and JS files in the assets folder when publishing. Is that possible?
m
s
+3
  • 5
  • 6
  • 157
Umbraco Future / SSR & CSR
p

PascalEugster

almost 2 years ago
Hey everyone. Today i was wondering what the future of umbraco could look like. I've read posts about using nextjs and other frameworks, but am i right, that then cshtml would be obsolete? Is the future more and more heading towards headless cms and moving away from cshtml and all that comes with it? OR is it still future proof and will it someday maybe go to blazor? What would be a good way to implement client side rendering together with cshtml? As you can see there is a lot of things that i'm unsure about. Maybe someone could help me out what a future proof stack could look like and what umbraco itself is targeting for the future. I've found this post regarding .net Core / MVC https://stackoverflow.com/questions/51390971/im-lost-what-happened-to-asp-net-mvc-5
p
a
+2
  • 4
  • 4
  • 156
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
  • 154
Hosting Umbraco on a Virtual Directory
o

Owain Jones

about 1 year ago
Hi all, We have a client site that currently sits on a virtual directory e.g.
ourclient.com/news
, where
/news
is our Umbraco site. On the current v8 site, we installed Umbraco itself in a
/news/
folder on the server, and everything worked ok, but that doesn't appear to be supported anymore in v13. I found two GitHub issues relating to this, where Umbraco HQ said they don't plan on supporting this scenario and suggest using a reverse proxy: https://github.com/umbraco/Umbraco-CMS/issues/11891#issuecomment-1570423375 https://github.com/umbraco/Umbraco-CMS/pull/13592#issuecomment-1570421802 but has anyone actually attempted this with a v10+ site? if so, where there any gotchas or sticking points?
o
c
+2
  • 4
  • 9
  • 153
Block editor custom view? v14.0.0-rc3
j

jojko

over 1 year ago
In Umbraco 13 I was able to point the *"Custom View" *of the block inside the block editor to the
.html
file to get the nice preview of the widget in a block grid. In v14 I assume that since web components are used, "Custom View" field should be pointed to one of them. I stumbled upon an extension type in an
umbraco-package.json
called
bockEditorCustomView
(I assume it's a typo and should be
blockEditorCustomView
?), I've tried to use it and point to JS file with web component, and then pick it from the "Custom View" option in backoffice. However, there are only just a list of all files/folders shown and no block editor custom view that I defined in manifest. How can I acheve this in v14? https://cdn.discordapp.com/attachments/1240303635796332556/1240303636181946420/image.png?ex=66461246&is=6644c0c6&hm=b5c3e626abef6cb1721814dd2f926e2bff5f4529d696c8c50db048e684c87319&
j
r
a
  • 3
  • 11
  • 153
[Solved] Tailwind Intellisense on Rider
c

Craig100

about 1 year ago
I've added Tailwind css to a couple of projects lately and while it works, I don't get TW intellisense when adding classes in the cshtml files. I get Bootstrap options offered instead of TW. Is there anything I need to do in particular to get TW intellisense working? Googling isn't cutting the mustard I'm afraid 😦 Thanks.
c
s
  • 2
  • 2
  • 151
Umbraco 13 in Azure Function
a

attila_08563

almost 2 years ago
Hello, I would like to use Umbraco 13 Services with Db integrated into Azure Function. I've found this article https://24days.in/umbraco-cms/2022/umbraco-anywhere/ which shows how we can setup Umbraco in Azure function but it references Umbraco.Cms.Infrastructure and Umbraco.Cms.Persistence.SqlServer version 10.3.2. When I tried this solution I got couple of exceptions of missing service registration, which I tried to collect in the attached picture. I also needed to remove Install Steps because it's registered in the AddCoreInitialServices but with missing dependencies and I don't want to use it from Azure function. Could You please help how can I use Umbraco 13 from Azure Function? Thanks, Attila https://cdn.discordapp.com/attachments/1193915012117450862/1193915012423618661/image.png?ex=65ae7300&is=659bfe00&hm=ed492f3ab1304bd33040b777a6c0859a415036e7985b29a6378142c8d86f5b03&
a
j
  • 2
  • 4
  • 151
Umbraco upgrade v10 - v13 Timeouts and errors Azure
s

SiempreSteve

over 1 year ago
I keep hitting 500 - The request timed out. The web server failed to respond within the specified time. Can anyone explain 1) The process continues even if I see the error on the front end (I think it does from the logs) 2) If it does continue will it complete succcessfully - I can't seem to wait long enough 3) If I hit the /install again what happens - will it pickup from where it left off or start again. Can I cause database issues? 4) I assume I'm hitting the 240 seconds Azure hard timeout - if this is the case shouldn't the upgrader break the task into smaller chunks so one request doesn't do the full upgrade?! If anyone has any tips on how to get around some of this I'd be keen to hear.
s
s
+2
  • 4
  • 17
  • 150
Best practice for new projects
p

Pekdon

over 1 year ago
I am about to create a new Umbraco project. I wish to follow best practices and run the latest (or at least LTS) version of Umbraco. The site we're currently working on, is a messed up Umbraco 8 installation. One giant mono-project. I would like to do better this next time around, and break everything up. How do you normally structure your solutions? My idea at the moment is to have at least two projects. Web.UI <--- Umbraco Web <--- References Umbraco.Cms.Core packages The idea is to have the Web.UI project only contain views, javascript and css, and stuff like usync exports and the like. And everything else to be housed in the Web project. this is also where I would like my models to be exported from the Modelsbuilder. (i have another thread on here with just how much of a pain in the behind that has been) But I wanna ask this community, how do you structure your new umbraco projects?
p
m
+4
  • 6
  • 56
  • 150
When to use UrlMode.Absolute on GetCropUrl?
o

Owain

over 2 years ago
Hey there - I'm using Image.GetCropUrl("thumbnail", UrlMode.Absolute) on a website but the site has been put behind Azure Front Door and image stopped working. If I removed UrlMode.Absolute, the images work again. When should UrlMode.Absolute be used and when shouldn't it be used? Not much in the docs that was any help. 🙂
o
s
+5
  • 7
  • 15
  • 150
Previous161718Next

Umbraco

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

Powered by