Copied to clipboard

Flag this post as spam?

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


  • Joao Pinto 24 posts 64 karma points
    Feb 19, 2013 @ 12:05
    Joao Pinto
    0

    umbraco v6 - Document.ContentType.Parent not working properly?

    Hello,

    working with ContentTypes and found out this:

    Document dMySelf = new Document(1091);
    Response.Write(dMySelf.ContentType.ParentId); //correctly prints the ID of the parent
    Document dMySelf = new Document(1091);
    Response.Write(dMySelf.ContentType.Parent.Id); //throws error No newParent node

    Of course the parent exists, since I can get the ID.

  • Rich Green 2246 posts 4008 karma points
    Feb 21, 2013 @ 18:16
    Rich Green
    0

    Hey Joao,

    I'm not sure if this is a question?

    If you're stating it's a bug please report it here http://issues.umbraco.org/

    If it's a question, then I'm not sure what reponse you are looking for?

    Rich

  • Joao Pinto 24 posts 64 karma points
    Feb 22, 2013 @ 09:55
    Joao Pinto
    0

    Dear Rich,

    thanks for the link, I was trying to understand if this is a common problem that also other users encounter, so I could confirm that is a bug and not just my umbraco setup.

    I'll report it, thanks

Please Sign in or register to post replies

Write your reply to:

Draft