c# - Umbraco 4.7.2 AfterSave create and move nodes in year / month structure causes left content tree to reload -


i have aftersave event runs code classify news items year , month nodes. portion works correctly, have problem because lfet content tree menu keeps "reloading" showing home node.

i've read many posts telling me use:

basepage.current.clienttools.synctree(sender.path, true); 

now logically should work, not.

i've tried calling:

umbraco.library.refreshcontent(); 

before calling synctree, did not help.

i've gotten "acceptable" results this:

string _returnurl = "editcontent.aspx?id=" + sender.id.tostring() + "&isnew=true"; basepage.current.clienttools.changecontentframeurl(_returnurl); 

but freaky hacky code.

can shed light on difficulties here?

thanks!


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -