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...
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.
Continue discussion
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...
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.