O'Reilly logo

Umbraco User's Guide by Paul Sterling, Nik Wahlberg

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

.NET SAMPLES

This section is riddled with code examples and usages for extending the functionality of Umbraco. The examples include the following:

image Remember to check out the download section of the Wrox website for all these code samples.

  • Recreating an XSLT template in .NET to see how the languages compare (pros and cons of each)
  • Rendering a node in a GridView and other standard .NET controls
  • Creating an Umbraco document programmatically
  • Creating a custom data type
  • A simple contact form
  • Hooking up a login form for use with Umbraco members

Clearly you can do a lot more in terms of making Umbraco a fully fledged custom application, but these samples should get you going.

image The downloadable Visual Studio project accompanying this book named UmbUsersGuide.Samples is a solid representation of what your project template should look like. It includes the standard folder structure, all required references to Umbraco libraries, and sample build events to automatically deploy the project DLLs and other files to your website installation.

List Subpages from Current Page

The List Subpages from Current Page macro recreates the same output as one of the existing XSLT templates that you looked at in Chapter 5. See Figure 12-1 for a view of the expected output.

FIGURE 12-1

To create your new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required