Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Context menu for document library

  Asked By: Ganesh Eng.         Date: Dec 28, 2009      Category: Sharepoint      Views: 312
 

I want to add a context menu for a particular document library.
I have added code in ows.js file located in


"c:\Program Files\Common Files\Microsoft Shared\web server
extensions\60\TEMPLATE\LAYOUTS\1033"

The code is as follows:

strDisplayText=L_AuditInfo;
strAction = "STSNavigate('" + ctx.HttpRoot + "/_layouts/" +L_Testpath +
"/LnTDesignWorkflow.aspx?list=" + ctx.listName + "&item=" + currentItemID
+ GetRootFolder(ctx) + "')";
strImagePath = ctx.imagesPath + "AuditInfo.gif";
CAMOpt(m, strDisplayText,strAction,strImagePath);

My menuitem "AuditInfo" is added in the context menu but it appears in all
the document library.
I want my item to be displayed for particular document library to which i
have attached my dll..

How it can be achived.?


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:          

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Context menu for document library Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].