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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...