Thank you guys, the attribute worked !
I am now trying to create a Data Folder type that references the IRoleData type, but I cannot find any complete documentation on what attributes I must use, and how to get the datatype to show under the "Data Folders" node in the tree.
My questions are:
1) What attributes are needed to create an IPageFolderData type that I can use on the pages via. the "Add Datafolder" context menu.
2) How do I specify the Tree XML to get it to show up in the Console UI under "Data"
I have created a custom datafolder type like this:
namespace Composite.Membership
{
I haven't been able to use it when I select "Add datafolder" on a page, and also I cannot see it in the Tree, so I tried to mock up a TreeDefinition XML, but with no luck.
I then tried to manually create a Data Folder type with the same name and attribute using the C1 Console, but now that datatype is not showing in the tree either, and the server log is showing this warning:
Failed initialization for the datatype Composite.Membership.IAllowedRoles,Composite.Membership
So now i'm in the situation where I cannot use the datatype from my DLL, and I cannot get rid of the data type I created manually, because it is not showing up in the tree.
Any help or pointers to documentation would be appreciated !
Regards,
Michael
I am now trying to create a Data Folder type that references the IRoleData type, but I cannot find any complete documentation on what attributes I must use, and how to get the datatype to show under the "Data Folders" node in the tree.
My questions are:
1) What attributes are needed to create an IPageFolderData type that I can use on the pages via. the "Add Datafolder" context menu.
2) How do I specify the Tree XML to get it to show up in the Console UI under "Data"
I have created a custom datafolder type like this:
namespace Composite.Membership
{
[AutoUpdateble]
[DataScope(DataScopeIdentifier.PublicName)]
[ImmutableTypeId("{1A877B9B-DC72-44F4-A275-52976B13AD04}")]
[DataAncestorProvider(typeof(NoAncestorDataAncestorProvider))]
[RelevantToUserType(Data.UserType.Developer)]
[Title("Composite.Membership.AllowedRoles")]
public interface IAllowedRoles : IPageFolderData
{
[StoreFieldType(PhysicalStoreFieldType.String,64)]
[ImmutableFieldId("500E8BDB-6F91-4927-B000-F1BEB0677BEC")]
[ForeignKey(typeof(IRoleData), "RoleName")]
string RoleName { get; set; }
}
}I haven't been able to use it when I select "Add datafolder" on a page, and also I cannot see it in the Tree, so I tried to mock up a TreeDefinition XML, but with no luck.
I then tried to manually create a Data Folder type with the same name and attribute using the C1 Console, but now that datatype is not showing in the tree either, and the server log is showing this warning:
Failed initialization for the datatype Composite.Membership.IAllowedRoles,Composite.Membership
So now i'm in the situation where I cannot use the datatype from my DLL, and I cannot get rid of the data type I created manually, because it is not showing up in the tree.
Any help or pointers to documentation would be appreciated !
Regards,
Michael