How to refresh sitecore tree node after edit that item and publish it

风流意气都作罢 提交于 2019-12-01 13:32:59

问题


I need to refresh sitecore tree node after publish it. Current behaviour is when I update some item and publish, sitecore tree node does not get refreshed. I have to manually refresh the sitecore tree node. How to accomplish this task?


回答1:


I've recently created a command where

Context.ClientPage.SendMessage(this, "item:load(id=" + item.ID + ")");

is used to load the newly created node. Maybe that works for you as well.




回答2:


John West has the best approach of this problem:

https://community.sitecore.net/technical_blogs/b/sitecorejohn_blog/posts/load-or-reload-an-item-in-the-sitecore-asp-net-cms



来源:https://stackoverflow.com/questions/15759624/how-to-refresh-sitecore-tree-node-after-edit-that-item-and-publish-it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!