How to get translation in Umbraco by dictionary key

This article will demonstrate how to get translation in Umbraco Cms using LocalizationService for a given dictionary key. Defining translations in the Backoffice At this stage, we need some data to work. Login to the Umbraco Backoffice panel. Go to the Translation section. Find the Dictionary section (left panel). Create a dictionary item called “Forms.ContactForm.ThankYouMessage”….

Reset the identity column value in MSSQL

How to reset the identity column value in the SQL server? To reset the current identity value for the table you should use DBCC CHECKIDENT function. It’s a great way to control the numbers sequence for the identity column. DBCC CHECKIDENT function is very useful for database maintenance and can be applied to numeric types: smallint bigint tinyint numeric integer decimal Why should use…

How to set Umbraco CMS DateTime Picker programmatically in AngularJs

Introduction In this short article, I am going to show the steps needed to set up date-time control programmatically in the Umbraco CMS back office. Recently, I had to refresh the date time picker control value under certain business-logic conditions directly in the angularJs controller. I had some issues, so I decided to write this text and share my working code….

3 easy steps to enable WebP image format in Umbraco CMS

How to serve Umbraco images in WebP format? It’s really simple with the WebP plugin (https://imageprocessor.org/imageprocessor/plugins/webp/) – an awesome extension to the ImageProcessor package. With the WebP package and simple setup, it’s possible to expose Umbraco’s images in Google’s WebP format. By the end of this article, you will know what exact steps you need to take to enable…

Enabling cross-origin requests in Umbraco API and Azure

What you will learn In this article, I’ll show how you can resolve Umbraco CMS API CORS policy problems, so you could easily consume Umbraco API from another domain. By the end of this short tutorial, you will know what steps you need to take to: Configure CORS for Umbraco API Fix Umbraco API CORS…

How to handle scripts bundling and minification in Umbraco CMS

Introduction There are many ways to make your Umbraco website load faster. In this article, I’ll cover the bundling and minification technique in Umbraco using native Microsoft.AspNet.Web.Optimization library to show how to optimize scripts. Before we start make sure you’ve read my previous post on – How to handle bundling and minification in ASP .NET. You should follow…

Logging Umbraco Api errors with a custom action filter

How to log exceptions in Umbraco Api Controller? In this short article, I am going to present a simple technique for logging exceptions in UmbracoApi with ActionFilters. There are many ways to handle exceptions in Umbraco CMS, however, logging using filters has quite a benefits: Short implementation time Can be applied globally or only on individual…

How to detect slow responses in Umbraco API?

Introduction In this short article, I am going to present a simple technique for detecting every slow response in Umbraco API with ActionFilters. It can be very useful when you need to: Find slow responses from the Umbraco API. Apply an efficient micro-benchmark technique without fireworks for use in a short time. Locate Umbraco CMS performance bottlenecks. Fix integration issues. Concept outline The principle of the…

Ultimate Power tools for .NET Developers [2022]

Introduction Hi Readers! In this article, I want to share with you some hand-picked powerful tools to make development work more effective. I use most of them all the time on a daily basis. In the following article, I will just focus on the basic overview, because some tools are very complex and the list of features changes…

How to use bundling and minification in ASP .NET

What you will learn? ASP .NET framework provides a native and powerful scripts optimization engine that is very easy to use. In this blog post, I will go through how you can handle your website scripts in an efficient way using bundle and minification techniques. After going through this step-by-step guide – you know how to…