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.


To create your new ...

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.