如何添加指向 SharePoint“创建”页面的链接 页?

发布于 2024-07-10 17:46:45 字数 276 浏览 8 评论 0原文

我有一个自定义功能,我想从“创建”页面(您可以从“网站操作”菜单访问的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

樱&纷飞 2024-07-17 17:46:45

我要责怪我当时的高烧,因为我的回答完全错误。

如果您只添加一个设置 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.

就像说晚安 2024-07-17 17:46:45

遗憾的是,您没有可支持的选项来将自定义链接添加到自定义列表列。 该列是从已安装的列表模板生成的,向该列添加任何内容的唯一方法是添加列表模板,这不能让您控制将生成哪个链接。

在“创建”页面上,您只能将自己的自定义链接添加到“网页”列。 为此,请添加一个带有 Location="Microsoft.SharePoint.Create" 和 GroupId="WebPages" 的 CustomAction:

    <CustomAction
 Location="Microsoft.SharePoint.Create"
 GroupId="WebPages"
 Title="Chris's Custom List">
      <UrlAction Url="custompage.aspx"/>
    </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":

    <CustomAction
 Location="Microsoft.SharePoint.Create"
 GroupId="WebPages"
 Title="Chris's Custom List">
      <UrlAction Url="custompage.aspx"/>
    </CustomAction>

You may, of course, modify the create.aspx file if you do not care about supportability or plan to ever upgrade SharePoint again.

.b

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文