As usual, I met with a new requirement and thought of sharing this to the community. I want to have a Context Menu on the Pages Document Library and on click of it, I need to do some functionality.
The requirement can be understood better with the below Screen shot.
Now, let us see how to do that using Visual Studio.
1. Create a Blank SharePoint Project Using Visual Studio.
2. Add an Empty Element.
3. Modify the Element.xml.
4. That’s it. Rebuild and Deploy. A new Context Menu will be created on the Pages Doc Library.