AI OnAI Off
[Serializable]
[PageDefinitionTypePlugIn(DisplayName="Skillelinje",
Description="Skillelinje for redigeringsmodus.")]
public class PropertyDivider : EPiServer.Core.PropertyNumber
{
// TODO: Override members of EPiServer.Core.PropertyNumber to provide your own logic.
public override EPiServer.Core.IPropertyControl CreatePropertyControl()
{
return new PropertyDividerControl();
}
}
------------
public class PropertyDividerControl : EPiServer.Web.PropertyControls.PropertyDataControl
{
/*
Override CreateXXXControls to control the appearance of the property data in different rendering conditions.
public override void CreateDefaultControls() - Used when rendering the view mode.
public override void CreateEditControls() - Used when rendering the property in edit mode.
public override void CreateOnPageEditControls() - used when rendering the property for "On Page Edit".
*/
public override void CreateEditControls()
{
string divTag = "
Sincerly,
Fredrik Haglund,
INEXOR AB
http://blog.fredrikhaglund.se
Hi Fredrik and everyone else,
We're interested in the same thing as Tony is asking for so if Fredrik, or someone else who has a similar solution, could share the code for a separator property we'd really appreciate it.
Best regards
Martin