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.

To get the selected pages when you code, just use this line

PageDataCollection pdc = Obg.SpecializedProperties.Util.MultiPage.GetPageDataCollectionByPropertyValue(CurrentPage["MultiPageContacts"]);

You can download the file here: MultiPage Property (binaries)

In this dll, my DropDown Property is also added.

Feel free to give me feedback on these properties or you want the source code etc.

100 thoughts on “MultiPage Property to EPiServer 5

  1. Krösus Sork

    Your MultiPage property is just what we needed. You should consider putting this one on EPiCode too!

  2. Chris White

    Any chance you could send me the source code for your custom controls – I need to write something very similar !!

    Cheers,
    Chris

  3. Dejan Milicic

    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.

    Thanx,
    Dejan

  4. Måns H

    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?

Comments are closed.