EPiServer  /  CMS February 07, 2011

Updates to the Typed Templating project

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.

Joel Abrahamsson

Joel Abrahamsson

I'm a passionate web developer and systems architect living in Stockholm, Sweden. I work as CTO for a large media site and enjoy developing with all technologies, especially .NET, Node.js, and ElasticSearch. Read more

Comments

comments powered by Disqus

My book

Want a structured way to learn EPiServer 7 development? Check out my book on Leanpub!

More about EPiServer CMS