Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So I need my code to unpublish a node when they add it to the basket. I've got the ID of the node page but I don't know how to unpublish it? could I set the expire date to -1? or is there a specific way?
Hi, I think that is possible with this method.
var cs = Services.ContentService; cs.Unpublish(cs.GetById(PAGE_ID));
where PAGE_ID is your node page ID.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Set Node to unpublish by ID?
So I need my code to unpublish a node when they add it to the basket. I've got the ID of the node page but I don't know how to unpublish it? could I set the expire date to -1? or is there a specific way?
Hi, I think that is possible with this method.
where PAGE_ID is your node page ID.
is working on a reply...