Copied to clipboard

Flag this post as spam?

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


  • Casper 70 posts 308 karma points
    Feb 22, 2016 @ 10:58
    Casper
    0

    Sync tree from inside ContentService.Published event

    Hi,

    I have the following scenario in an ApplicationEventHandler. Hooking up to published event, create new node and save it:

    ContentService.Published += (sender, e) =>
    {    
        foreach (var publishedEntity in e.PublishedEntities)
        {
            var content =  applicationContext.Services.ContentService.CreateContent(...);
            applicationContext.Services.ContentService.Save(content);
        }       
    } 
    

    This is all good and it does what it is supposed to. My question is how to reload the content tree and focus the newly created node from within this ApplicationeventHandler?

    Is it doable?

Please Sign in or register to post replies

Write your reply to:

Draft