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

时间:2021-10-31 00:40:31

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.

我有一个自定义功能,我想从“创建”页面上的链接链接到该功能 - 您可以从“网站操作”菜单中获取create.aspx页面。我很乐意在我的功能元素清单中以声明方式或在某些功能激活代码中以编程方式执行此操作,但我不知道它是否可行或如何开始。与此同时,我在“网站操作”菜单中有一个链接,但我想将其移动到“创建”页面中更合逻辑的位置。

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.

最后,我想在“创建”页面的“自定义列表”列的底部有一个链接,其中显示“Chris的自定义列表”,该链接将指向我的自定义应用程序页面以启动此自定义列表创建处理。

2 个解决方案

#1


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.

如果只添加一个列表模板来设置ListTemplate元素的NewPage属性,则可以将自定义链接添加到自定义列表列。

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.

我不知道为什么我回答了我做了什么,但为了弥补任何困惑,我写了一篇文章,演示了自定义SharePoint列表创建以及各种其他功能。

#2


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”:

    <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.

当然,如果您不关心可支持性或计划再次升级SharePoint,您可以修改create.aspx文件。

.b

#1


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.

如果只添加一个列表模板来设置ListTemplate元素的NewPage属性,则可以将自定义链接添加到自定义列表列。

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.

我不知道为什么我回答了我做了什么,但为了弥补任何困惑,我写了一篇文章,演示了自定义SharePoint列表创建以及各种其他功能。

#2


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”:

    <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.

当然,如果您不关心可支持性或计划再次升级SharePoint,您可以修改create.aspx文件。

.b