Copied to clipboard

Flag this post as spam?

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


  • Damian Green 452 posts 1432 karma points
    Feb 18, 2013 @ 18:29
    Damian Green
    0

    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.

    [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
  • Stephen 44 posts 246 karma points
    Feb 25, 2013 @ 19:10
    Stephen
    100

    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

  • Damian Green 452 posts 1432 karma points
    Feb 26, 2013 @ 11:15
    Damian Green
    0

    That sounds like it could well be the issue! Thanks.

  • Matt Taylor 785 posts 1802 karma points
    May 15, 2013 @ 13:09
    Matt Taylor
    0

    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.

  • Matt Taylor 785 posts 1802 karma points
    May 15, 2013 @ 13:18
    Matt Taylor
    0

    I've taken a look at the changes made by Lee, it all seems to be regarding the Alias, no mention of .Save()?

  • Matt Taylor 785 posts 1802 karma points
    May 15, 2013 @ 13:53
    Matt Taylor
    0

    Further testing with the latest source suggests that it's not creating the document types at all.

  • lock0 1 post 21 karma points
    Oct 09, 2013 @ 11:23
    lock0
    0

    Vega.USiteBuilderForUmbraco6.1.6 Send me e-mail I will send you the DLL

    xiaoxiao95888@163.com

Please Sign in or register to post replies

Write your reply to:

Draft