Umbraco API Explained

There are a number of different APIs that developers can use to integrate with Umbraco, however, it is sometimes  difficult to know what each API is for and when to use it.  Almost every page within your Umbraco site will need to get data from Umbraco, so understanding what’s available to you, how to get and store data from Umbraco is a vital part of any project.  Most of the APIs are based on accessing data from Umbraco.

CONTENTS

1. Umbraco 7 API Basics Introduction
2. How To Get The Current Page In Umbraco 7
3. What is the Umbraco Helper?
4. How To Get The Home Page In Umbraco?
5. How To Get Data About Another Page In Umbraco
6. How To Display Media In Your Umbraco Site
7. Parsing A Date From Umbraco

Latest Umbraco API Tutorials

Parsing A Date From Umbraco

This post is a quick reference about how to convert a date from Umbraco and convert it into a C# DateTime when using dynamic binding. When you work with Umbraco, I strongly recommend using a strongly-typed model approach, to learn why, I suggest you read this article, How To Write Safe Testable Code When Using […]

Umbraco 7 API Basics Introduction

In today's guide, I'm going to cover some of the basic Umbraco APi calls that you will need when you start working with Umbraco. This post is meant to be a quick reference guide to frequently used Umbraco queries. If you have any to add please leave a comment. How To Get The Current Page […]

How To Display Media In Your Umbraco Site

Displaying images on a website is a key aspect on any build.  Luckily, Umbraco provides us with all the properties required to allow a content editor to attach images to a document type, as well as the API methods to display them. Media Picker The first thing we are going to do is add a […]

How To Get Data About Another Page In Umbraco

Last time, I talked about how to get information about the current document type from a controller, or a view in, How To Get The Current Page In Umbraco 7.  Today I'm going to go over how to get data from other document types. Getting Information About Another Page Let's say you want to link […]

How To Get The Current Page In Umbraco 7

On every Umbraco 7 build, you will undoubtedly need to get information about the current page, create a link to the search page, the contact us page. Luckily, Umbraco provides us several API calls to achieve this. Getting Current Page Information From A Controller Now Umbraco is compatible with MVC, it is good practice to […]

How To Get The Home Page In Umbraco?

One common requirement on every Umbraco build is getting a reference to the homepage from your code.  On most website builds, you may only have one node as the In these scenarios you can use this snippet to get the homepage from the Umbraco Helper: One thign to note, is that if you're trying to […]

What is the Umbraco Helper?

In my last guide, I explained how to create a template in Umbraco.  For a quick re-cap, a template in Umbraco language is similar to a view in MVC, its the basic building block to display HTML and CSS on your Umbraco websites.  I mean, having a blank website would be very dull and would […]