Question

I have been assigned a task to work on document libraries. The requirements of the project want me to make a view of doclibs that shows the last 10 modified documents and that view should have a little button/widget to link to the folder showing view. How can I make such a button that would sit next to the sync feature of a document library?

Was it helpful?

Solution

The easy way to do that is by using JSLink and attach to the current view. In the js file that you are going to use in the JSLink, you can use jQuery and target the following UL with this class ms-qcb-zone ms-qcb-leftzone (This ul contains the New, Upload, Sync, etc) . You can add an li at the end with the button you want with link to the view.

enter image description here

OTHER TIPS

Alternate solution,

  1. Open site in designer
  2. Navigate to List and Libraries
  3. click on library name
  4. Right bottom - Custom actions - New
  5. Provide button name, description
  6. Provide url of your view in Navigate to URL
  7. Provide image url and sequesnce number as to where you want the ribbon button to be viewed.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top