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
Using the content service, I move a node like so;
var contentService = ApplicationContext.Current.Services.ContentService;
contentService.Move(myIContentItem, someParentIContentItem.Id);
The content tree then collapses (closes). I want to keep it open (expanded) and show the new position of the node I just moved.
How do I do this in C#? Also, how do I control the speech bubble to say it's been moved (also C#)?
Thanks.
http://stackoverflow.com/questions/8955785/umbraco-refresh-nodes-parent-in-content-tree-from-action-handler
Thanks, but I can't seem to get this working at all. According to that SO solution, it seems that I need to call
umbraco.BasePages.BasePage.Current.ClientTools.SyncTree(doc.Parent.Path, true);
However, intellisense reveals that "BasePage" is obsolete from that namespace and I should use;
Umbraco.Web.UI.Pages.BasePage
But this has no methods for getting "Current".
The ApplicationContext.Current has a ClientTools property you could try. So ApplicationContext.Current.ClientTools.SyncTree
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Moving a node via API collapses the tree, how do I keep it open? (V6.1.1)
Using the content service, I move a node like so;
var contentService = ApplicationContext.Current.Services.ContentService;
contentService.Move(myIContentItem, someParentIContentItem.Id);
The content tree then collapses (closes). I want to keep it open (expanded) and show the new position of the node I just moved.
How do I do this in C#? Also, how do I control the speech bubble to say it's been moved (also C#)?
Thanks.
http://stackoverflow.com/questions/8955785/umbraco-refresh-nodes-parent-in-content-tree-from-action-handler
Thanks, but I can't seem to get this working at all. According to that SO solution, it seems that I need to call
However, intellisense reveals that "BasePage" is obsolete from that namespace and I should use;
But this has no methods for getting "Current".
The ApplicationContext.Current has a ClientTools property you could try. So ApplicationContext.Current.ClientTools.SyncTree
is working on a reply...