Copied to clipboard

Flag this post as spam?

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


  • GP 16 posts 46 karma points
    Mar 13, 2013 @ 14:42
    GP
    0

    Node != Document ?

    Hu guys,

    i have found  the same propriety  valued differently depending if the object is a node or a document.
    node.GetPropriety("photos")  and document.GetPropriety("photos").
    The id is the same.

    how's that possible?

     

  • Andreas Iseli 150 posts 427 karma points
    Mar 13, 2013 @ 14:44
    Andreas Iseli
    0

    I think this depends on where you get the object (Node / Document) from. Once it is a cached version using only the published values and the other uses the currently saved but not published value. Could this be in your case?

  • GP 16 posts 46 karma points
    Mar 13, 2013 @ 14:58
    GP
    0

    It is a published content. I do change its value by code using the document object. It looks like the node hasn't been updated but in the content tree it  is updated. 

    GP

  • Andreas Iseli 150 posts 427 karma points
    Mar 13, 2013 @ 15:18
    Andreas Iseli
    0

    I assume that you have saved and published the node through code? Perhaps you may also call the UpdateDocumentCache to have the correct content on both objects?

  • GP 16 posts 46 karma points
    Mar 13, 2013 @ 15:39
    GP
    0

    you're right.. in one point I forgot to call UpdateDocumentCache method.
    thank you for your help.

    Gian Paolo 

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Mar 13, 2013 @ 16:38
    Jeroen Breuer
    1
Please Sign in or register to post replies

Write your reply to:

Draft