Copied to clipboard

Flag this post as spam?

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


  • nickornotto 403 posts 907 karma points
    Oct 17, 2013 @ 14:06
    nickornotto
    0

    DataEditorSetting could not be found

    I am creating custom data type in umbraco (based on this article) and am using DataEditorSetting attribute for a property.

    The problem is I'm getting DataEditorSetting could not be found... and I don't know what assembly I should reference to have it included in my project.

    The code goes like this:

    using System;
    using System.Collections;
    using System.Configuration;
    using System.Data;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    
    using umbraco.cms.businesslogic.datatype;
    
    
    namespace UmbracoCreateCustomDatatypeWithWrapper
    {
        public partial class Demo : System.Web.UI.UserControl, umbraco.editorControls.userControlGrapper.IUsercontrolDataEditor  
    {
        public string umbracoValue;
        public object value
        {
            get
            {
                return umbracoValue;
            }
            set
            {
                umbracoValue = value.ToString();
            }
        }
    
                [DataEditorSetting("Text column")]
                public string TextColumn { get; set; }
        }
    }
    

    I have referenced umbraco, umbraco.editorControls & cms. What am I missing?

  • nickornotto 403 posts 907 karma points
    Nov 14, 2013 @ 11:09
    nickornotto
    0

    Does anyone can help with this? I tried again but cannot find any documentation what namespace is DataEditorSetting in.

    I have umbraco 6.0.7 (I believe DataEditorSetting was in umbraco.cms.businesslogic.datatype in version 4 but my script doesn't pick it up from there).

    Thanks

  • Comment author was deleted

    Nov 14, 2013 @ 11:13

    You'll need to reference the cms.dll

  • Comment author was deleted

    Nov 14, 2013 @ 11:14

    Here is some source to get you started

    http://www.nibble.be/?p=97

  • nickornotto 403 posts 907 karma points
    Nov 14, 2013 @ 11:29
    nickornotto
    0

    Tim, I used the link you provided to build it - I pasted my code above.

    I have reference to cms.dll, it's not working with it.

  • Comment author was deleted

    Nov 14, 2013 @ 11:41

    Try adding businesslogic as well and interfaces

  • nickornotto 403 posts 907 karma points
    Nov 14, 2013 @ 12:05
    nickornotto
    0

    Nope, they don't make it any better.

  • Comment author was deleted

    Nov 14, 2013 @ 12:55

    Hmm what .net framework is your solution targeting?

  • Comment author was deleted

    Nov 14, 2013 @ 12:55

    And did you try downloading the source from the blogpost and starting from that?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies