A blog about understanding and extending Episerver. May contain traces of posts not concerning Episerver.

MultiPage Property to EPiServer 5

I know there is a great MultiPage Property on EPiCode, but sometimes I want to use a bit more simple MultiPage picker, and not be able to choose to link documents and other pages etc. So when I had some spare time a few weeks ago, I wrote my own multipage property.

To make the property as powerful as possible I’ve added the oppertunity to specify the startnode when you add a page, and there is also a possibility to choose wich PageTypes you are allowed to use. If you leave the help-text blank you will be able to add all pagetypes and the startnode will be the start page. Defining these values in help-text may not be the best way to go, but it’s the easiest way if you want it as dynamically as possible. I usually change where to define these values in my projects, etc a settings page or web.config, but in this case the help text is wonderful. 🙂

If the editor tries to add an invalid page type, the following msg will appear.

Yes, it would be great if you could publish source code too… For example, I would like to make textarea have always the constant size, even if it is empty… and also make it more big. I can add some more tiny improvements and then return you such code.

Hi, I ran across your name in the ticket regarding MultiPageProperty and mirroring over at epicode, and just wanted to check if you got it to work. The two other options (rewriting the hela kalaset or switching all multipageprops to linkcollections) aren’t very tempting, maybe you have a hint at some workarounds?