Hi,I'm working on a custom page in admin to handle some stuff that is outside of the EPi database. My question is if there is a way to add a "URL to page/external address" property to my page, so people can select a specific page in the site?
It's a GUI Plugin that I've made, forgot that.
If you look at http://labs.episerver.com/en/Blogs/Anders-Hattestad/Dates/2010/3/Change-the-edit-page-for-the-editors/
You can find the code for CreateSubProperty (is in file PropertyNiceEditMode.cs) that will return a IPropertyControl that you need to do SetUpControl() on.
When you want to save do IPropertyControl.ApplyEditChanges() and the underline property is modified with the new value.
Make a property like PropertyPageReference add it to a empty PropertyDataCollection and use these 2 elements as propertydata and propertydatacollection in above code