Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Useing EPiServer properties on custom page

Vote:
 

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?

Regards,
Anders Pettersson

#37520
Mar 09, 2010 11:39
Vote:
 

It's a GUI Plugin that I've made, forgot that.

#37523
Mar 09, 2010 11:43
Vote:
 

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

#37524
Mar 09, 2010 12:21
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.