Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vasia Vasia 49 posts 241 karma points
    May 27, 2014 @ 10:18
    Vasia Vasia
    0

    Trying to override rte converter

    Hi All,

    I'm trying to override rte converter and got the following error

    Type 'RtePropertyEditorValueConverter' cannot be an IPropertyValueConverter for property 'text' of content type 'Solutions' because type 'Umbraco.Web.PropertyEditors.ValueConverters.RteMacroRenderingValueConverter' has already been detected as a converter for that property, and only one converter can exist for a property

    This is my code:

    [PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Request)]
        [PropertyValueType(typeof(IHtmlString))]
        public class RtePropertyEditorValueConverter : RteMacroRenderingValueConverter
        {
            public override object ConvertDataToSource(PublishedPropertyType propertyType, object source, bool preview)
            {
                return source;
            }
        }

    I'm wondering whether this is possible? 

    Thanks, Oleg

  • Vasia Vasia 49 posts 241 karma points
    May 27, 2014 @ 12:56
    Vasia Vasia
    0

    Any ideas?

  • Vasia Vasia 49 posts 241 karma points
    Jun 18, 2014 @ 17:26
    Vasia Vasia
    0

    Can anyone help? 

  • Antony Briggs 78 posts 103 karma points
    Oct 01, 2014 @ 11:47
    Antony Briggs
    0

    Hi Oleg,

    I just came across this requirement my self and founf the solution in issue U4-4998.

    You need to remove RteMacroRenderingValueConverter from the PropertyValueConvertersResolver.

    Cheers,

    Ant

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Oct 01, 2014 @ 12:04
Please Sign in or register to post replies

Write your reply to:

Draft