What would stop the AllowedChildNodeTypes getting set on the documents types structure?
I've tried from a fresh installation and none of them are getting set. Everything else seems to be working ok and I have inherited from DocumentTypeBase at the bottom of the inheritance structure.
I have also used them before so know they have worked in the past.
Here is an example of what i've done and cant see anything wrong myself.
[DocumentType(Name = "Product Ranges", IconUrl = "folder.gif",
Alias = "ProductRanges",
AllowedTemplates = new string[] { },
AllowedChildNodeTypes = new Type[] { typeof(ProductRange) })]
public class ProductRanges : ContentMaster
[DocumentType(Name = "Product Range",
Alias = "ProductRange",
AllowedTemplates = new string[] { },
AllowedChildNodeTypes = new Type[] { })]
public class ProductRange : ContentMaster
I'me downloaded the latest source using the 'Dowload the latest source' link, compiled it but no joy. The allowed child node types are still not being populated.
AllowedChildNodeTypes not setting
What would stop the AllowedChildNodeTypes getting set on the documents types structure?
I've tried from a fresh installation and none of them are getting set. Everything else seems to be working ok and I have inherited from DocumentTypeBase at the bottom of the inheritance structure.
I have also used them before so know they have worked in the past.
Here is an example of what i've done and cant see anything wrong myself.
Is it a v6 site? There was a change to force a specific call to .Save() in v6 that is missing from the code in uSiteBuilder.
You could try compiling the latest code here http://usitebuilder.codeplex.com/ and using that - Lee Kelleher had submitted a fix for this.
Stephen
That sounds like it could well be the issue! Thanks.
I'm having the same problem with a v6 site.
I'me downloaded the latest source using the 'Dowload the latest source' link, compiled it but no joy.
The allowed child node types are still not being populated.
I've taken a look at the changes made by Lee, it all seems to be regarding the Alias, no mention of .Save()?
Further testing with the latest source suggests that it's not creating the document types at all.
Vega.USiteBuilderForUmbraco6.1.6 Send me e-mail I will send you the DLL
[email protected]
is working on a reply...