Menu

Blog

Technology tidbits

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

February 27, 2015 by Christopher 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

Inverse Foundation Top Bar to Light Background

February 26, 2015 by Christopher Sherman

Foundation 5 ships with a dark navigation bar and, unlike Bootstrap, does not have a class to quickly inverse the color scheme. To change the Foundation Top Bar to dark text on a light background, open the _settings.scss file and replace the Top Bar variables section with the settings below.

Continue reading

Razor Paging

February 25, 2015 by Christopher 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

Initial Values for Entity Framework Code First Forms

February 24, 2015 by Christopher Sherman

In this tutorial, I’ll explain how to initialize Entity Framework Code First views with default values. Entity Framework Code First provides a declarative method for easily creating CRUD applications with the ASPASP Dot Net MVC framework.

Continue reading

Configure a Hover Domain Name for an Azure Website

February 20, 2015 by Christopher Sherman

To point domains purchased from Hover to your Microsoft Azure Website, just follow the steps below. Only Azure Websites in Shared, Basic, and Standard modes allow you to use custom domain names, so you may need to upgrade your service from the free tier.

Continue reading

Code First Migrations with Continuous Integration

February 19, 2015 by Christopher Sherman

Entity Framework’s Code First Migrations keeps the database in sync with its underlying data model, and Visual Studio provides a convenient checkbox within the Publish Wizard to execute Code First Migrations when publishing manually. If you use continuous integration to publish from source control, however, you still need a way to run migrations on the database. In this tutorial, I’ll explain how to add a flag that sets off the migration task.

Continue reading

Use Bootstrap with Bower and Grunt

February 18, 2015 by Christopher Sherman

If you want to use the popular web framework Twitter Bootstrap for your next project, you could simply copy the Bootstrap CSS and JavaScript. But if you’d like to enhance your ability to customize, improve the efficiency of your workflow, and make the project portable, you can instead utilize SASS, Bower, and Grunt to set up Bootstrap. Let’s get to it.

Continue reading

Multi-Property Validation Attribute with EF Code First

February 17, 2015 by Christopher Sherman

Entity Framework provides several built-in validators for individual properties on Code First models. When you want to validate multiple, dependent properties, however, in most cases you will need to create a custom, class-level validation attribute. In this tutorial, I’ll explain how to do just that.

Continue reading

Save User Input to MongoDB with Umbraco

February 16, 2015 by Christopher 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 Christopher 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