下面在Site Settings页 >Site Administration里添加一个Ruby Setting 超链接,点击进入到rubySetting.aspx
1.在SharePoint project里建一个Empty Element,会立即在feature下面生成一个feature,默认Scope是Web
2.在Elements.xml里修改如下
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="RubySPSettings"
Description="Test Ruby Setting"
Title="Ruby Setting"
GroupId="SiteAdministration"
Location="Microsoft.SharePoint.SiteSettings"
Rights="ManageWeb"
RequireSiteAdministrator="TRUE"
Sequence="10000">
<UrlAction Url="~sitecollection/_layouts/AddSiteSetting/RubySetting.aspx" />
</CustomAction>
</Elements>
效果图: