Display legacy custom property without the popup

Vote:
 

We hade upgraded a project from EpiServer 6 R2 to Episerver 7. The project contains a custom property that simply prints out a divider (an underlined heading) used to group properties in edit mode.

After the upgrade to EpiServer 7 the custom property were displayed as a regular textbox. I added a UIHint (not connected to any editor) ([UIHint("UseLegacyEditorForDivider")]) and now I get the property displayed as:

"Click button to edit property" (translated from norwegian) - and when I click the button I can finally se my divider.

Is it possible to have the divider displayed "inline" - so it can be seen without clicking the button?

#66443
Feb 28, 2013 15:27
Vote:
 

You'll need to make a new editor for that property and an EditorDescriptor to link them. Shouldn't take too much work to change. The reason you can't simply display it inline is because the new UI is based on javascript meaning we can't just load an ASCX control inline ;)


Check out this blog post from Linus (http://world.episerver.com/Blogs/Linus-Ekstrom/Dates/2012/9/EPiServer-7-Configuring-editors-for-your-properties/) and shout if you have more questions.

#66449
Feb 28, 2013 16:15
Vote:
 

Ben is right. Legacy editors require posting back to update editing value, which does not very well fit into the Sparrowhawk style. However, if you don't bother with an ugly Save button, you could definitely make it. I have created an experimental inline editor for LinkCollectionList properties a few months back. You can try at your risk.

LinkCollectionList inline form editor

#66479
Mar 01, 2013 10:54
Vote:
 

Thanks, a new editor did the trick! :-)

#67997
Edited, Mar 14, 2013 14:44
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.