现在的位置: 首页 > 综合 > 正文

Add Ribbon button and menu item in Sharepoint 2010

2013年02月10日 ⁄ 综合 ⁄ 共 1506字 ⁄ 字号 评论关闭

1. Create an empty sharepoint project using VS2010

2. Add new item "Empty Element" and give it name as "NewRibbonControl". This element will add a new ribbon button on the ribbon panel of document library.

3. Edit the Elements.xml like this,

 

 

Note: you must prepare the picture resources you need

 

4. Add new "Empty Element" and give it name as "MyActionMenu". This element will add a new menu item to the Site Action Menu.

5. Edit the Elements.xml like this,

 

 

6. deploy the solution to the sharepoint site.

7. Go to document library to check the ribbon panel and check menu for SiteAction, you will see the changes.

抱歉!评论已关闭.