Tuesday, October 16, 2012

How To Create an ECB menu to Wiki library in Sharepoint 2010


In order to add a custom menu to any list/library in sharepoint, we need to create a custom action; We need to specify the registrationID (templateID) correctly to identify the list template. List of template IDs can be found here

Steps

1.     Create a new Empty Sharepoint project
2.     Deploy as a farm solution
3.     Add New Feature


4.     By default it will be added as Feature1; Rename the feature


        5.  Select scope to "Web"


6.     Add new item and select Empty element




7.     Add the below xml to the element.xml;
     The registration Id 119 corresponds to the wiki library.


<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction
    Id="CA_Wiki"
    RegistrationType="List"
    RegistrationId="119"
    ImageUrl="/_layouts/1033/Images/RTEDCELL.GIF"
    Location="EditControlBlock"
    Sequence="301"
    Title="My Custom ECB Menu Item for Wiki" >
    <UrlAction
      Url="http://msn.com"/>
   
  </CustomAction>
</Elements>

8.     Deploy the solution and check in your wiki library



Sharepoint BCS Issue with Userprofile


BCS user profile TCP error code 10061: No connection could be made because the target machine actively refused the connection.

If you see the error "could not connect to   http://ServerName:5725/ResourceManagementService/MEX" in ULS, then your FIM(Forefront Identity Manager) service is not started. To fix this issue you need to start the FIM service


Goto Run-> services.msc-> start the FIM service


Sharepoint List Template Ids

Here is the list of Template IDs for Sharepoint libraries & lists





Value
Description
100
Generic list
101
Document library
102
Survey
103
Links list
104
Announcements list
105
Contacts list
106
Events list
107
Tasks list
108
Discussion board
109
Picture library
110
Data sources
111
Site template gallery
112
User Information list
113
Web Part gallery
114
List template gallery
115
XML Form library
116
Master pages gallery
117
No-Code Workflows
118
Custom Workflow Process
119
Wiki Page library
120
Custom grid for a list
130
Data Connection library
140
Workflow History
150
Gantt Tasks list
200
Meeting Series list
201
Meeting Agenda list
202
Meeting Attendees list
204
Meeting Decisions list
207
Meeting Objectives list
210
Meeting text box
211
Meeting Things To Bring list
212
Meeting Workspace Pages list
300
Portal Sites list
301
Blog Posts list
302
Blog Comments list
303
Blog Categories list
1100
Issue tracking
1200
Administrator tasks list
2002
Personal document library
2003
Private document library