Blogs

Content Sync

Simple Content Synchronization with Umbraco

I'll share how I tackled a small project requiring the import of content from an old site or files into an Umbraco CMS. While there are paid options available for such tasks, my project's budget constraints led me to develop a basic, yet effective, logic for content importation. I aim to outline this logic, offering it as a starting point or inspiration for others. Please note, the code I'm presenting isn't the pinnacle of optimization, but it's a solid foundation you can build upon. This approach is designed for a single language setup, though adapting it for multilingual content is straightforward. Let's dive into the C# code provided and explore how it works, step by step.

Continue Reading
ViewEngine

Themed Based Views - Using a view engine in Umbraco

In our website applications in TRES, we have an option for Mult Site. This means that you can have multiple sites in one Umbraco CMS with a different look and feel. 

But we don't want to have duplicate content types or datatypes. We develop our applications in a way that we reuse a lot of element types for editing experience.

But on some occasions, we need to override the cshtml in such a way that it's completely different than the original. 

You can do this within the view but Asp.NET MVC also has an option for view engines.

Continue Reading
Quick Tip Ngrok

Quick Tip: Debugging Umbraco webhooks with Ngrok

I use Ngrok as a tool to expose my local server to the internet. It helps me by creating a secure tunnel from the public internet to my application on my local machine.

This is extremely useful when I need to test an external web service that is pushing data to our applications. Especially when there is an error with that service in production, or when I can't use it directly for local development. Sometimes the error only occurs in your web application in production mode. Then, it could be a data error where your local environments can't access this data directly.

Continue Reading
Multi Targeting Blog

Compatibility Across Versions: Multi-Targeting in Umbraco 10 and 13 Package Development

Released on December 14, 2023, Umbraco 13 is the next long-term supported (LTS) version, built on the latest Microsoft .NET framework, specifically .NET 8 and ASP.NET Core 8, and utilizes C# 12.

At my company TRES, we only support LTS versions because they are supported for longer periods and don't contain experimental features.

Continue Reading
Source Code 583537 1280

Quick Tip: Serving media from a live environment

So with all our projects at TRES, we don't want to store all the media in source control. But if we are working locally we want to have media visible. This means many developers download media from the Test environment and then run the site. This is quickly done for a simple site, but sometimes our sites contain Gigabytes of data. 

So why not manipulate the media URL to point to our test environment?

Continue Reading

Clean up your umbraco application with no ftp access!

Having FTP access to your Umbraco application can lead to problems, such as changes being made without version control that can be lost in deploys and pipelines. But without FTP access, how can you clean up your application? Johan's hear to help, showing us how we can use MS Web Deploy and a publish profile to clean up unwanted files without FTP!

Continue Reading