Sharepoint在线自定义操作组 [英] Sharepoint online custom action group

查看:74
本文介绍了Sharepoint在线自定义操作组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我试图添加一个带有< customactiongroup>元素的应用程序但它没有说明它没有在架构中定义,唯一的选择是只添加< customaction>。是否可以在sharepoint online中添加任何习惯组?

我的议程是将一组带有"EditControlBlock"位置的菜单项添加到自定义组中,而不是使用默认组"Advanced"在sharepoint online。 



谢谢!
b

问候语
P

Hi,

I tried to add an app with an element having <customactiongroup> but it failed stating it is not defined in the schema and the only option was to add just <customaction>. Is it possible in sharepoint online to add any customactiongroup at all?
My agenda, is to add a set of menu items with location 'EditControlBlock' to a custom group and not use the default group 'Advanced' in sharepoint online. 

Thanks!

Regards
P

推荐答案

Hello Dragon_7,

Hello Dragon_7,

请求您找到以下代码供您参考。

Request you to find below code for your reference.

使用此代码将自定义操作添加到网站设置页。

//添加网站设置链接

UserCustomAction siteSettingLink = clientContext.Web.UserCustomActions.Add();
$
siteSettingLink.Group =" AdminTasks";

siteSettingLink.Location =" Microsoft.SharePoint.SiteSettings" ;;
$
siteSettingLink.Name =" Admin_CustomSiteSetting";
$
siteSettingLink.Sequence = 1000;

siteSettingLink.Url = string.Format(DeployManager .appUrl, clientContext.Url);
$
siteSettingLink.Title =" Update Site Metadata"; $
siteSettingLink.Update();

clientContext.ExecuteQuery( );

// Add site settings link
UserCustomAction siteSettingLink = clientContext.Web.UserCustomActions.Add();
siteSettingLink.Group = "AdminTasks";
siteSettingLink.Location = "Microsoft.SharePoint.SiteSettings";
siteSettingLink.Name = "Admin_CustomSiteSetting";
siteSettingLink.Sequence = 1000;
siteSettingLink.Url = string.Format(DeployManager.appUrl, clientContext.Url);
siteSettingLink.Title = "Update Site Metadata";
siteSettingLink.Update();
clientContext.ExecuteQuery();

使用此代码添加网站操作链接


这篇关于Sharepoint在线自定义操作组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆