But it does not seem to have the desired effect. Im sure i am just doing it wrong but I am sure that it worked in the past. Any pointers or corrections on how I should approach it would be appreciated.
BasePage.Current.ClientTools.MoveNode(sender.Id.ToString(), new Document(sender.Id).Path);
as I don't think the Path property of the Document object will be updated when calling .Move. I think you simply need to make the document again to get the new path.
Resync the tree after a custom event moves a node
I have a custom Event that moves a node before its published but I the tree closes and does not reopen to that node after the move.
I have tried putting the following in after the event has occured
But it does not seem to have the desired effect. Im sure i am just doing it wrong but I am sure that it worked in the past. Any pointers or corrections on how I should approach it would be appreciated.
If you are moving nodes, perhaps try
I've used that before with success.
Nope doesnt seem to work.
at what point should I be calling that? I am doing it at the end of the beforePublish event
So what am I doing wrong?
Hmm, I think you need to do something like
as I don't think the Path property of the Document object will be updated when calling .Move. I think you simply need to make the document again to get the new path.
Hi,
Did you resolve this? I'm also having problems refreshing the tree and opening at the correct node after moving a document.
thanks
Hi James
This is how I resolved it. where
p
is the newly moved and published document.Hope this helps
thanks..i'm actually using version 4.11. i'll keep trying..cheers
is working on a reply...