A common question I received from customers is that they would like to edit property values during authoring time similar to editing placeholder content.
I have previously provided a solution for this but this needs to do some coding for every property. A better solution would be to have a server control similar to the MCMS placeholder controls to do this.
After spending a several hours I just finished such a server control which will be available on GotDotNet in a few days.
Here are some screenshots to give you an idea about how this control can be used.
The first picture shows a template loaded in VS.NET that contains several instances of this server control to all the author to modify some properties. As you can see the control allows to edit as well custom properties and standard page properties like the Description property.
Usage is very simple: In the property window you will find 3 properties:
During authoring time this will look as follows:
And here is a picture of the Calendar Picker control:
The server control allows to control whether the property value should also be shown in presentation mode or not. If yes, the current version just shows the value in clear text as seen here:
Design Limitation: AuthoringPreview will not show updated values as there is no in-memory save feature as with the placeholder objects. I did not find a quick solution to overcome this limitation.
The sample code is now live on GotDotNet.
I added the PropertyAuthoringServerControl.cs file to our custom controls and addes it to the toolbox.
But when I drag this control it give me error saying error creating control.
It would be nice if you can provide step by step instructions.
Great control. Nice work.
One possible enhancement: render a label for the input fields. Now I had to add some extra logic to avoid that the my labels ('name', 'displayname', names of the cust props., ...) are shown in presentation mode.
yes, that is a good idea.
Feel free to add it by yourself!
As an author for an MCMS web site you might have experienced the problem that you first have to save...
My control to allow direct editing of property values during edit time contained a small bug in the time...