Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 25, 2010 @ 20:37
    Stefan Kip
    0

    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?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Nov 25, 2010 @ 21:11
    Jeroen Breuer
    0

    I've got it working with this:

    BasePage.Current.ClientTools.SyncTree(Path, true)

    Only difference with your code is that I don't call .RefreshTree(). Hopefully it will work.

    Jeroen

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 25, 2010 @ 21:26
    Stefan Kip
    0

    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?

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Nov 29, 2010 @ 17:40
    Stefan Kip
    2

    This did the job for me:

    BasePage.Current.ClientTools.ChangeContentFrameUrl(string.Concat("editContent.aspx?id=", nodeid));
Please Sign in or register to post replies

Write your reply to:

Draft