Copied to clipboard

Flag this post as spam?

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


  • Thomas Dolberg 74 posts 95 karma points
    Nov 13, 2011 @ 00:30
    Thomas Dolberg
    0

    Publish node async

    I am creating a website in which can submit some feedback which will then update the node. Is it possible to publish the node asynchronously, so the site seems faster to the user?

    At the moment I am doing the following, which I would like to do async:

       System.Xml.XmlDocument xd = new System.Xml.XmlDocument();

      doc.XmlGenerate(xd);

       umbraco.library.RefreshContent();

     from http://our.umbraco.org/wiki/reference/api-cheatsheet/publishing-and-republishing

     

    thanks

    Thomas

  • Owen 123 posts 246 karma points
    Nov 13, 2011 @ 02:37
    Owen
    0

    Umbraco provide a web service allow you to do this. You can enable web service API, and invoke the api by Ajax.

    How to enable?

    1. Download the umbraco source code and build umbraco.webservices project

    2. Copy umbraco.webservices.dll to bin folder

    3. in Umbracosettings.config file, set Enable  to "True" and specify the umbraco users that need permission to access it.

Please Sign in or register to post replies

Write your reply to:

Draft