Try our conversational search powered by Generative AI!
AI OnAI Off
Och en något mer avancerad variant, där du kan skapa en egen property som fungerar som PropertyLongString och som kan editeras i edit-läget. Exempel:
using System;
using EPiServer.Core;
using EPiServer.PlugIn;
namespace development
{
///
/// Property representing a long string that can be edited
/// using the editor both in edit and preview mode.
///
[PageDefinitionTypePlugIn()]
[Serializable]
public class PropertyPreviewEditableString : PropertyLongString
{
public override void CreateChildControls(
string renderType,System.Web.UI.Control container)
{
base.CreateChildControls("edit",container);
}
}
}