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?
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:
I have referenced umbraco, umbraco.editorControls & cms. What am I missing?
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
You'll need to reference the cms.dll
Here is some source to get you started
http://www.nibble.be/?p=97
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.
Try adding businesslogic as well and interfaces
Nope, they don't make it any better.
Hmm what .net framework is your solution targeting?
And did you try downloading the source from the blogpost and starting from that?
is working on a reply...
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.