如何使用XML和ShowModalDialog创建网站核心对话框

问题描述 投票:0回答:1

我基于\ Dialogs \ CopyTo.XML文件创建了一个CopyToMarkets.XML对话框文件:enter image description here

并尝试通过以下方式打开对话框:

Context.ClientPage.ClientResponse.ShowModalDialog("/sitecore/shell/Applications/Dialogs/Copy To Markets.aspx", "1200px", "700px", string.Empty, true);

它变成灰色,什么也没发生。

但是,当我将ShowModalDialog与Copy To.aspx一起使用时,它显示得很好。

我是Sitecore的新手,所以也许我误会了一些东西,但基于对本教程中创建内容编辑器ui的理解:https://sitecorejunkie.com/2012/12/12/put-things-into-context-augmenting-the-item-context-menu-part-2/

让我知道这是否不是创建新的编辑器对话框的正确/现代方法!

sitecore sitecore8 sitecore9
1个回答
0
投票

我最终建立了这样的网址:

© www.soinside.com 2019 - 2024. All rights reserved.