【发布时间】:2012-09-07 19:06:41
【问题描述】:
我正在 sitecore 6.5 中构建一个自定义字段。该字段将根据该字段所在的项目生成新项目(它使用项目的名称来生成文件夹),我需要引用正在使用该字段的项目。我如何访问这个?
如果有帮助的话,我的自定义字段继承自 sitecore Sitecore.Shell.Applications.ContentEditor.File 类。
我的问题与此处的问题类似:How to get a reference to the currently edited item when inside a custom field in Sitecore
但是,以前版本的 sitecore 存在问题,并且解决方案似乎不再有效(ItemID 不在视图状态中,也没有被管道填充)。
谢谢!
【问题讨论】: