We all know that we have an option to add new document in document libraries. If the customers want the ability to do the same from any other page, we can do that too with the use of ‘Content Editor Web Part’. Here are the steps.
- Edit Page -> Add new content editor web part.
- Click here to add new content -> HTML markup<a class=”ms-addnew” id=”idHomePageNewDocument” href=”http://abc.xyz.org/_layouts/Upload.aspx?List={your list guid}&RootFolder=” onclick=”javascript:NewItem2(event, "https://office.bt.com/sites/PCs/KAL/_layouts/Upload.aspx?List={0DAB416D-AB62-489A-AEAA-798114AD244F}&RootFolder=");javascript:returnfalse;” target=”_self”>+ Add document</a>
- You can get the link of your ‘+ Add Document’ by right clicking properties and copy the path that you can then paste in the href section of the hyperlink above.
- Apply -> OK -> Stop editing.
- You can further change the title of the web part by editing the content editor web part.
- Now we can add new documents to the library from the page you inserted the link in.
Good luck!