Umbraco

Set Up Umbraco in Visual Studio with LocalDB and Deploy to Azure

February 27, 2015 by Chris Sherman

Since Microsoft has deprecated SQL Server Compact, it makes sense to transition your Umbraco development environment to a supported database solution. In this tutorial, I’ll first explain how to configure an Umbraco CMS project in Visual Studio using LocalDB for development. Next, I’ll show you how to deploy the project to Microsoft Azure Websites using an Azure SQL Database.

Continue reading

Razor Paging

February 25, 2015 by Chris Sherman

When you have large numbers of a particular object, it can be beneficial to add paging to limit the number of instances displayed. In this tutorial, I’ll demonstrate a Razor paging implementation that you can use with the Umbraco CMS as well as other projects that make use of Razor.

Continue reading

Save User Input to MongoDB with Umbraco

February 16, 2015 by Chris Sherman

There are many reasons why you may accept user input on an Umbraco CMS site, but what if you want to save that data to a document-oriented storage solution like MongoDB? In this article, I’ll explain how to add a surface controller that does just that in the context of a contact form. I will use MongoLab on Microsoft Azure as my database host, but you can also set up a local MongoDB server on your development machine.

Continue reading

Get Umbraco Content by Tag

February 13, 2015 by Chris Sherman

Yesterday I explained how to display the Umbraco tag data type, but what if you want to get all content that matches a given tag? In this post I’ll show you how to implement this feature so the anchor tags from the last post respond intelligently.

Continue reading

Display Umbraco Tags on Razor Templates

February 12, 2015 by Chris Sherman

Umbraco has a built-in tag data type that allows users to easily apply a list of tags to a document. But once you’ve added a tag property to a document type, how do you display the tag list in a Razor view? I’ll show you how in three steps.

Continue reading

Navigate Between Child Documents in Umbraco

February 11, 2015 by Chris Sherman

It’s a common convenience to allow website visitors to navigate to the next document within a category without resorting to the back button. You might utilize this design paradigm at the bottom of a blog post to encourage your visitors to read another one of your articles. Lucky for us, Umbraco has a built-in extension function for doing just this sort of thing with the Razor syntax.

Continue reading

Umbraco Contact Form with Email Notification

February 10, 2015 by Chris Sherman

A contact form is an essential facet of many websites and a feature that Umbraco 7 does not provide, at least not for free. In this tutorial I’ll show you how to create a contact form with email notification. We’ll use the SendGrid email service to send messages.

Continue reading

XML Sitemap with Umbraco

February 9, 2015 by Chris Sherman

A sitemap is a file informing search engines about the organization of website content, according to Google. While web crawlers typically discover most content without a sitemap, however, there are specific instances where having a sitemap can improve discoverability.

Continue reading

HTML Sitemap with Umbraco

February 6, 2015 by Chris Sherman

HTML sitemaps provide visitors with a bird’s-eye view of a website. I use one on my 404 error page to help users assist users in finding content. In this tutorial, I’ll explain how to add a HTML sitemap to an Umbraco 7 project.

Continue reading

Razor Truncate Function for Previewing Content

February 5, 2015 by Chris Sherman

In my tutorial on using Umbraco Partial Views with Razor, I provided sample code that made use of a Truncate function that provides a preview of text content. If you try to implement the sample code, you’ll notice the Truncate function is not available to you because it originates from a custom Razor helper. My Truncate helper fixes a bug in the UmbracoHelper.cs source that was inadvertently stripping out anchor tags. This fix was merged into the umbraco:dev-v7 branch, so it should be available in a subsequent Umbraco release.

Continue reading