sharepoint - Change document library "Type" after it has been created from list definition -
When development begins against SharePoint, I did not initially understand all ins and exclusions. A list definition (for a document library) and created various custom actions for it. Unfortunately, I use the following for list definition:
and to register the constraint against the list:
& lt; Custom Action ... ... Registration Type = "List" Registration Id = "101" ...
Of course, this means that custom actions are visible to all documents libraries where the facility Is an undesirable behavior which is active. Apart from this, there are many libraries out of these documents which have been made in production from the above list definition.
What is the best way to fix this problem? My impression is that I already need to change the "type" attribute of the current lists, but I do not know how to do it. Can this be done directly through some SQL manipulation? Or is there a better way?
Note: I can see that there is a column in the Alllisting table tp_ServerTemplate, what is the correct thing to change?
Modifying the SharePoint database is by Microsoft Please do do not do it on production !
Another option is to create a content type and associate the custom action with it. You may need to write a simple console application to be repeated through your existing document libraries and to add content type. So that he is available for use The contents of the existing documents on which you want to apply custom actions will also be changed.
Comments
Post a Comment