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
Hello guys,
I'm trying to unpulish an item but doesn't work. Have you encounter this problem before ?
Here is my code:
foreach (Document _docWalker in arlPhotoNodes) { .................... _docWalker.UnPublish(); _docWalker.delete(); ........................... }
Thanks in advanced
Nicu
Hi,
I think you need to make a call (after the unpublish) to :
umbraco.library.UpdateDocumentCache(_docWalker.Id);
I have just discoverd that you have to delete it from config file as well like that
umbraco.library.UnPublishSingleNode(_docWalker.Id);
seems that
_docWalker.UnPublish();only mark document as unpublish
Hi Peter,
You solution is correct
thanks
nicu
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
Fail to unpublish a node
Hello guys,
I'm trying to unpulish an item but doesn't work. Have you encounter this problem before ?
Here is my code:
Thanks in advanced
Nicu
Hi,
I think you need to make a call (after the unpublish) to :
I have just discoverd that you have to delete it from config file as well like that
umbraco.library.UnPublishSingleNode(_docWalker.Id);
seems that
Hi Peter,
You solution is correct
thanks
nicu
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.