Skip to content

Example draft

VladimirLevchuk edited this page Jun 13, 2013 · 1 revision

NOTE: example here just shows how to add your own property. The code below is taken from the library code, so it's already implemented.

Story

As an EPiServer site developer I want to have typed access to the parent page in my content pages so I can use it in my logic and easily set from unit tests.

##1. Define annotation attribute ##2. Define property getter ##3. Register our property getter ##4. Add base page class with the Parent property defined ##5. Create a test page ###Page type ###Controller

View

Enjoy your new property ;)

Clone this wiki locally