如何添加指向 SharePoint“创建”页面的链接 页?
我有一个自定义功能,我想从“创建”页面(您可以从“网站操作”菜单访问的 create.aspx 页面)上的链接链接到该功能。 我很乐意在我的功能元素清单中以声明方式执行此操作,或在某些功能激活代码中以编程方式执行此操作,但我不知道是否可能或如何开始。 与此同时,我在“网站操作”菜单中有一个链接,但我想将其移动到“创建”页面中逻辑上更合适的位置。
最后,我希望在“创建”页面上“自定义列表”列的底部有一个链接,显示“Chris 的自定义列表”,并且该链接将指向我的自定义应用程序页面以启动此自定义列表创建过程。
I have a custom feature, and I'd like to link to that functionality from a link on the "Create" page -- the create.aspx page that you get to from the Site Actions menu. I'd be happy to do this either declaratively within my feature's element manifest or programmatically in some feature activation code, but I have no idea if it's possible or how to begin. In the meantime, I have a link in the Site Actions menu, but I'd like to move it to a more logically appropriate location in the Create page.
In the end, I'd like to have a link at the bottom of the "Custom Lists" column on the Create page that says "Chris's Custom List", and that link would point to my custom application page to initiate this custom list creation process.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我要责怪我当时的高烧,因为我的回答完全错误。
如果您只添加一个设置 ListTemplate 元素的 NewPage 属性的列表模板,则可以将自定义链接添加到自定义列表列。
我不知道为什么我回答了我所做的事情,但为了弥补任何困惑,我写了一篇文章来演示 自定义 SharePoint 列表创建以及各种其他功能。
I am going to blame my rather high fever at the time, because my answer is just plain wrong.
You can add custom links to the custom lists column if you just add a list template that asets the NewPage property of the ListTemplate element.
I have no idea why I answered what I did, but to make up for any confusion I have written an article that demonstrates custom SharePoint list creation as well as a variety of other features.
遗憾的是,您没有可支持的选项来将自定义链接添加到自定义列表列。 该列是从已安装的列表模板生成的,向该列添加任何内容的唯一方法是添加列表模板,这不能让您控制将生成哪个链接。
在“创建”页面上,您只能将自己的自定义链接添加到“网页”列。 为此,请添加一个带有 Location="Microsoft.SharePoint.Create" 和 GroupId="WebPages" 的 CustomAction:
当然,如果您不关心可支持性或计划升级 SharePoint,您当然可以修改 create.aspx 文件再次。
.b
Sadly you have no supportable option to add custom links to the Custom Lists column. The column is generated from the installed list templates, and you only method for adding anything to that column is adding a list template, which does not give you control over which link will be generated.
On the Create page you can add your own custom links only to the Web Pages column. To do so, add a CustomAction with Location="Microsoft.SharePoint.Create" and a GroupId="WebPages":
You may, of course, modify the create.aspx file if you do not care about supportability or plan to ever upgrade SharePoint again.
.b