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: 5125

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?



2 Answers Found

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

try this if it applies to your scenario:

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:

and a walk thru here:

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:

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