Enable drag and drop of PageReferences in edit mode

Code by:

Marthin Freij

Konstruktor Sweden AB

Owner, developer and trainer at Konstruktor Sweden AB

This is an example of how page references can be dragged and dropped from a page tree plug-in onto page reference properties in edit panel.

Place all the files in a folder named dragndrop in your webroot and add a control adapter mapping for the InputPageReference control in AdapterMappings.browser.

Used for Product: EPiServer CMS 6
Code sample:

All use of the code is on a “use at your own risk” basis. Episerver is under no circumstances responsible for any direct or indirect loss experienced by users or project owners, when downloading and using code presented within the section Code on Episerver World. Please note that this is example code and should not be used within production environment without testing. Episerver do not support the code examples posted within the section Code on Episerver World.