Lets say i have the following two items:
[Name("Blog Post")]
[Category("Blog")]
public class BlogPost : ItemEntry
{
[Text]
public string Title { get; set; }
[DropdownList]
public string Author { get; set; }
}
[Name("Author")]
[Category("Blog")]
public class BlogPostAuthor: ItemEntry
{
[Text]
public string Name { get; set; }
[RichText]
public string Bio { get; set; }
}
How would i relate Author from BlogPost to BlogPostAuthor. I guess what i really want, is to set the "source type" on the dropdown list. Is this possible when using the code-first approach?
I tried using the attribute:
[Field("Author", typeof(Dynamicweb.Content.Items.Editors.DropDownListEditor<BlogPostAuthor>))]
But that did not work.