Copied to clipboard

Flag this post as spam?

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


  • Max Mumford 266 posts 293 karma points
    Aug 02, 2011 @ 13:07
    Max Mumford
    0

    Node published and cache updated but content not in xml

    Hi all,

    I am trying to programatically publish a node using the below code:

    d.Publish(new umbraco.BusinessLogic.User(0));
    umbraco.library.UpdateDocumentCache(d.Id);

    The node is published and when I navigate to it's parent page my XSLT macro that lists that page's children sees the published node, but does not output any of it's properties. I have to manually republish the node to refresh the XML cache and it works. What is wrong with the code above?

    Thanks,

    Max.

  • Ally Watson 16 posts 37 karma points
    Oct 05, 2012 @ 15:26
    Ally Watson
    0

    Hi Max, this is a long shot as this is more than a year old but did you ever get this problem solved? I'm experiancing the same thing :-(

     

    Thanks,

    Ally

  • Max Mumford 266 posts 293 karma points
    Oct 08, 2012 @ 17:51
    Max Mumford
    0

    Hey,

    Sorry I can't for the life of me remember what I did to fix it. Take a look here : http://our.umbraco.org/wiki/reference/api-cheatsheet/publishing-and-republishing for info on how to publish, and in the cmsContentXml  to make sure the data is actually being updated

    Good luck! 

Please Sign in or register to post replies

Write your reply to:

Draft