A few weeks ago I blogged about a little project that I called Typed Templating. At that time the project contained a single abstract class, TypedPageList intended to be used as a base class for web controls used for listing EPiServer pages. Since then I’ve begun using it in a real project and made some improvements to it.
The most significant new feature is perhaps another class that I’ve added, TypedMenuList. TypedMenuList is similar to EPiServer’s MenuList but just as TypedPageList it offers statically typed access to the PageData objects in the item templates. It also contains the nice templating functionality found in TypedPageList, such as header and footer templates for various types of items making it easy to generate complex markup without having to do nasty things in code behind.
Another new features is that both controls now have a template named EmptyTemplate. The contents of an EmptyTemplate is rendered if the underlying list is empty.
You can grab the latest version, 0.2, here or fork the repository on GitHub.
PS. For updates about new posts, sites I find useful and the occasional rant you can follow me on Twitter. You are also most welcome to subscribe to the RSS-feed.
This blog is built with EPiServer Community, EPiServer CMS, ASP.NET MVC and a bunch of other great products. The source code is available for download at the projects page, where you also can read more about this site and my other projects.
read more