Search Results for

    Show / Hide Table of Contents
    View Source

    Class MultiNodeTreePickerPropertyEditor.MultiNodeTreePickerPropertyValueEditor

    Inheritance
    System.Object
    DataValueEditor
    Namespace: Umbraco.Cms.Core.PropertyEditors
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public class MultiNodeTreePickerPropertyValueEditor : DataValueEditor, IDataValueEditor, IDataValueReference
    Remarks

    At first glance, the fromEditor and toEditor methods might seem strange. This is because we wanted to stop the leaking of UDI's to the frontend while not having to do database migrations so we opted to, for now, translate the udi string in the database into a structured format unique to the client This way, for now, no migration is needed and no changes outside of the editor logic needs to be touched to stop the leaking.

    Constructors

    View Source

    MultiNodeTreePickerPropertyValueEditor(IShortStringHelper, IJsonSerializer, IIOHelper, DataEditorAttribute)

    Declaration
    public MultiNodeTreePickerPropertyValueEditor(IShortStringHelper shortStringHelper, IJsonSerializer jsonSerializer, IIOHelper ioHelper, DataEditorAttribute attribute)
    Parameters
    Type Name Description
    IShortStringHelper shortStringHelper
    IJsonSerializer jsonSerializer
    IIOHelper ioHelper
    DataEditorAttribute attribute

    Methods

    View Source

    FromEditor(ContentPropertyData, Object)

    Declaration
    public override object FromEditor(ContentPropertyData editorValue, object currentValue)
    Parameters
    Type Name Description
    ContentPropertyData editorValue
    System.Object currentValue
    Returns
    Type Description
    System.Object
    View Source

    GetReferences(Object)

    Declaration
    public IEnumerable<UmbracoEntityReference> GetReferences(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type Description
    IEnumerable<UmbracoEntityReference>
    View Source

    ToEditor(IProperty, String, String)

    Declaration
    public override object ToEditor(IProperty property, string culture = null, string segment = null)
    Parameters
    Type Name Description
    IProperty property
    System.String culture
    System.String segment
    Returns
    Type Description
    System.Object
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • MultiNodeTreePickerPropertyValueEditor(IShortStringHelper, IJsonSerializer, IIOHelper, DataEditorAttribute)
    • Methods
      • FromEditor(ContentPropertyData, Object)
      • GetReferences(Object)
      • ToEditor(IProperty, String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX