Earlier in the week I wrote about the great talk given by Niels Hartvig (the founder of Umbraco) at TechEd.
As always you can watch the full talk here but below are my highlights of the 2nd part.
Using parameters and macros
If you have a reusable control you probably will want to pass parameters too it. This snippet shows you how you can bind data from Umbraco to your controls.
Creating a Gallery Part 1
I found the following demo really useful when I was getting to grips with the flexibility of Umbraco. Niels creates a document type called photo, he then creates a collection of these photos by creating a Gallery Document type which contains these photos.
By the end of the 7 minutes demo he has a list of photographs, in part 2 he shows you how to customise the look of the gallery using jQuery.
Creating a Gallery Part 2
Using the gallery created in Part one, Neils uses a jQuery plugin called pikachoose to take his rather boring list of images and convert it into an interactive gallery.
Creating a Gallery Part 3
In the previous parts Niels used xlst to produce the gallery markup. In this part Niels uses a razor control that he created the previous day to show how you could use razor syntax to achieve the same result. The control that Niels demonstrates is now part of the full Umbraco 4.6 release.
If you haven’t looked at razor before take a look at this for an overview: