Copied to clipboard

Flag this post as spam?

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


  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Sep 14, 2011 @ 17:38
    Lee Kelleher
    0

    Unpublish webservice?

    Does anyone know if there is a webservice available for unpublishing a content node?

    I've had a look over the core API, but couldn't find anything useful. (I'm sure there was a DocumentService.asmx avaliable at one point?)

    The reason I want it as a webservice is that I'd like to unpublish a node from an AJAX request (jQuery).

    Also got me thinking about this other forum post: Adding Unpublish action to context menu - did anyone ever develop this?

    Thanks, Lee.

  • Bo Damgaard Mortensen 712 posts 1189 karma points
    Sep 14, 2011 @ 19:31
    Bo Damgaard Mortensen
    0

    Hi Lee,

    There's still a DocumentService available :) In order to enable it you have to:

    1. Open the umbracoSettings.config and set Enabled="True" and specify the Umbraco users that needs permission to access it.
    2. Download the Umbraco source code and build the umbraco.Webservices project
    3. Copy the umbraco.Webservices.dll to your Umbraco bin folder

    And there you have it.

    If it can unpublish, I don't know :P

    All the best,

    Bo

    Edit: but, wouldn't that be a suitable job for /base aswell? :)
  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Sep 14, 2011 @ 20:20
    Lee Kelleher
    0

    Thanks Bo. Completely forgot about /Base for a while then!  Think I was focusing on webservices too much! *doh*

    I took a look at the 'umbraco.webservices' project/code - curious why it is no longer shipped with Umbraco any more? The DocumentService webservice could unpublish a node (e.g. a call to the "update" method with the documentCarrier's 'publishAction' set to 'Unpublish').

    But I'm going to write a few /Base methods to solve this problem - thanks again for pointing me in the right direction!

    Cheers, Lee.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies