Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Adding Custom Actions to Document Library

  Asked By: Karen    Date: Aug 23    Category: Sharepoint    Views: 3971

How can we add custom actions to a document library tool bar.(please refer to
the image attached.)
I am required to add "AddLinks" just beside "settings" tab of document library
as shown in figure."AddLinks" is used to add directory locations to files.Can I
achive this by customising the document library feature?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Jose Scott     Answered On: Aug 23

try this if it applies to your scenario:
http://sujant.spaces.live.com/blog/cns!61B9CE11DC9962C3!195.entry

 
Answer #2    Answered By: Taylor Clark     Answered On: Aug 23

You can create a CustomAction Feature using Location="EditControlBlock" for
RegistrationType="List" and RegistrationId="101" (or a specific content type, if
that option works better for you).

See syntax details here:
msdn.microsoft.com/en-us/library/ms460194.aspx

and a walk thru here:
msdn.microsoft.com/en-us/library/ms473643.aspx

If you then associate an assembly with your Custom Action using the
ControlAssembly and ControlClass properties, you can programmatically determine
(however you want) if the document  library currently in scope should have a menu
option or not. See this blog post for details about implementing an
assembly-based Custom Action, while it demonstrates a Site Actions example
rather than an ECB example, Tony's is the best post I've seen on this topic:
sharepointsolutions.blogspot.com/.../quick-site-settings-adding-sub-m\
enus_16.html

 
Didn't find what you were looking for? Find more on Adding Custom Actions to Document Library Or get search suggestion and latest updates.




Tagged: