自定义功能区按钮未显示在子网站上
|
我已成功将自定义功能区按钮添加到我的网站,所有内容均按预期显示。但是,当我转到子站点时,我的自定义功能区按钮不会显示。如何使我的按钮显示在主站点和子站点中?我以为部署到主站点的按钮也会继承到子站点,但是我想并非如此。任何人有任何想法或指导吗?我的按钮get \被添加到RTE的\“ Insert \”选项卡的\“ Media \”组中。
哦,我正在使用“站点”范围内的功能进行部署。
这是我的按钮代码:
<?xml version=\"1.0\" encoding=\"utf-8\"?>
<Elements xmlns=\"http://schemas.microsoft.com/sharepoint/\">
<CustomAction
Id=\"CommandUI.Ribbon.EditingTools.MyCompany_InsertVideoButton\"
Location=\"CommandUI.Ribbon\">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location=\"Ribbon.EditingTools.CPInsert.Media.Controls._children\">
<Button
Id=\"Ribbon.EditingTools.CPInsert.Media.Controls.MyCompany_InsertVideoButton\"
ToolTipTitle=\"Video\"
ToolTipDescription=\"Insert a video into the page.\"
Sequence=\"50\"
LabelText=\"Insert Video\"
Image16by16=\"/_layouts/MyCompany/images/icons/ribbonInsertVideoButton_16.png\"
Image32by32=\"/_layouts/MyCompany/images/icons/ribbonInsertVideoButton_32.png\"
Command=\"MyCompany_InsertVideoButtonCommand\"
TemplateAlias=\"o1\" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command=\"MyCompany_InsertVideoButtonCommand\"
CommandAction=\"javascript:alert(\'MyCompanyInsertVideoButton clicked!\');\"
/>
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
</Elements>
没有找到相关结果
已邀请:
2 个回复
珊畴炮贩号
范围的功能来部署您的解决方案。要在部署后激活它,请转到管理中心>应用程序管理>管理Web应用程序,然后在Web应用程序功能区中选择\“管理功能\”。
襄挟款籍