4

Templates, Markup, and Master Pages

  • How does Umbraco implement templates?
  • How do you best separate and create your HTML markup for use in Umbraco templates?
  • How do you inject content using special Umbraco tags?
  • How do you use styles and scripts to create the base of your application?

Now that you've defined the document types and content structure for the site, you must create some way to display the content that the document types will hold. As Chapter 2 discusses, Umbraco is excellent at maintaining .NET standards. This chapter talks about .NET master pages. They are the foundation of how to structure and design the templates and markup needed for the output of content.

Master pages were introduced to developers as of .NET 2.0. They help developers create moldable, maintainable, and flexible layouts while separating content from structure. In addition, they provide you with a way to apply one or many styles consistently across multiple pages and child pages. Master pages are one of the many building blocks of Umbraco, so although you're going to see how this particular block works, you won't see the complete picture until later chapters. However, by the end of this chapter you will be able to create master pages and child master pages to mold and display your content to the end user.

Get Umbraco User's Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.