I'm trying to sync the content tree with ClientTools.SyncTree(), but I can't manage to get it to work... This is for the DateFolders package and this is the situation: - The document with date property is saved - The month of the date property has changed (from 10 to 11) - A new node get's created inside the year folder (e.g. 2010) called 11 - The document get's moved to the new date folder (11) - I'm reloading the document to get it's new path - I'm calling: BasePage.Current.ClientTools.RefreshTree().SyncTree(doc.Path, true); to refresh the tree and sync to the current document (which was being edited)
Result: the tree get's refreshed, but the tree won't sync to the document begin edited...
Using ClientTools.SyncTree()
I'm trying to sync the content tree with ClientTools.SyncTree(), but I can't manage to get it to work...
This is for the DateFolders package and this is the situation:
- The document with date property is saved
- The month of the date property has changed (from 10 to 11)
- A new node get's created inside the year folder (e.g. 2010) called 11
- The document get's moved to the new date folder (11)
- I'm reloading the document to get it's new path
- I'm calling: BasePage.Current.ClientTools.RefreshTree().SyncTree(doc.Path, true); to refresh the tree and sync to the current document (which was being edited)
Result: the tree get's refreshed, but the tree won't sync to the document begin edited...
Anyone able to help me out?
I've got it working with this:
Only difference with your code is that I don't call .RefreshTree(). Hopefully it will work.
Jeroen
Well, I forgot to mention; I did try without the RefreshTree() method. Hoped it would help..
Have you got this working when moving an existing document to a new just created document?
This did the job for me:
is working on a reply...