在 SharePoint 2007 中列为视图的其他页面
情况:
我已经使用 SharePoint Designer 自定义了 SharePoint 2007 的 Bug 数据库模板。具体来说,我编辑了模板中包含的位于 Bug 列表内的其他 .aspx 页面。这些只是简单的编辑表单,我的自定义非常小。
我已验证是否正确选择了支持文件(新建、编辑、显示)。这些表格也都经过编辑。我的错误列表中有以下 .aspx 页面(非视图):
Activate.aspx
Close.aspx
- DispForm.aspx - 支持显示表单
- EditForm.aspx - 支持编辑表单
- NewForm.aspx
- ResolveForm.aspx
- NewIssue.aspx - 支持新表单
Resolve.aspx
问题:
在任何在视图中,除了实际的视图选项之外,视图下拉列表还包含 3 个非视图,分别对应于“激活”、“关闭”和“解决”表单。选择这些“视图”只会打开这些表单。
显然,SharePoint 会选取列表中不支持文件的任何 .aspx 页面并假设它们是视图。奇怪的是,在我使用 SharePoint Designer 修改这些文件之前,情况并非如此。此外,NewForm.aspx 页面未被修改(我刚刚创建了一个新表单,现在是支持文件),即使它没有标记为支持文件,它也不会错误地显示在我的观点列表中。
结论:
必须有一些设置将这些文件标记为非视图,而不将它们作为支持文件。我查看了 NewForm.aspx 并将其与我修改后的表单进行了比较,没有发现与此有任何关系的明显差异。
也许您以前遇到过这个问题或者知道如何解决这个问题?如果是这样,这里有一些简单的要点!提前致谢!
The Situation:
I have customized the Bug Database template for SharePoint 2007 using SharePoint Designer. Specifically, I have edited the additional .aspx pages included with the template that are located inside the Bugs list. These are just simple edit forms and my customizations are very minor.
I have verified that the Supporting Files are correctly selected (New, Edit, Display). These forms have all been edited as well. I have the following .aspx pages (Non Views) in the Bugs List:
Activate.aspx
Close.aspx
- DispForm.aspx - Supporting Display Form
- EditForm.aspx - Supporting Edit Form
- NewForm.aspx
- ResolveForm.aspx
- NewIssue.aspx - Supporting New Form
Resolve.aspx
The Problem:
On any of the views, the view dropdown contains 3 non views that correspond to the Activate, Close, and Resolve forms in addition to the actual view choices. Choosing these "views" just opens these forms.
Obviously, SharePoint is picking up any .aspx pages in the List that aren't supporting files and assuming they are views. Strangely, this was NOT the case for these files before I modified them using SharePoint Designer. Additionally, The NewForm.aspx page was NOT modified (I just created a new form that is now a supporting file), and even though it is not marked as a supporting file, it does not incorrectly show up in my views list.
The Conclusion:
There must be some setting to mark these files as non views without them being supporting files. I have looked through the NewForm.aspx and compared it to my modified forms and can find no obvious difference that should have any bearing on this.
Perhaps you have had this problem before or are aware of how to fix this issue? If so, here are some easy points! Thanks in Advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它们已设置为视图(听起来像是),请尝试隐藏
以将其从视图列表中删除http://msdn.microsoft.com/en-us/library/ms438338.aspx
我认为你不能它们是
http://msdn.microsoft.com/en-us/library/ms478121%28v=office.12%29.aspx
If they have been setup as a view (which it sounds like they have been), try making the
<View>
hidden to remove it from the view listhttp://msdn.microsoft.com/en-us/library/ms438338.aspx
I dont think you can make them
<Form>
elements, as it only accepts DisplayForm, EditForm, or NewFormhttp://msdn.microsoft.com/en-us/library/ms478121%28v=office.12%29.aspx