如何获取EPiServer中PageDefinitionTypePlugIn属性的父页面?
我有一个 [PageDefinitionTypePlugIn] PropertyString (它是一个下拉列表),我希望能够检测它的父页面是什么。一般来说,Global.EPDataFactory.CurrentPage 可以很好地返回页面,但是当创建新页面时,CurrentPage 返回 null。
我需要在渲染控件之前知道父控件是什么,因为我正在根据当前页面在导航层次结构中的位置更改下拉列表中的值列表。
谢谢, 槊
I've got a [PageDefinitionTypePlugIn] PropertyString (it's a dropdownlist), and I'd like to be able to detect what it's parent page is. Generally, Global.EPDataFactory.CurrentPage works fine to return the page, but when a NEW page is being created, CurrentPage returns null.
I need to know prior to the render of the control what the parent is, since I'm changing the list of values in the dropdown depending on where the current page is in the navigation heirarchy structure.
Thanks,
Lance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
更多
发布评论
评论(1)