Create link to “New Item”
<a href=”javascript:OpenPopUpPageWithTitle(‘</site/library>/_layouts/15/Upload.aspx?List={<List-GUID>}&RootFolder=&IsDlg=1′,RefreshOnDialogClose,null,null,'<Title>’);”>Add item</a>
Create link to “New Folder”
<a href=”javascript:OpenPopUpPageWithTitle(‘</site/library>/Forms/Upload.aspx?RootFolder=&Type=1&IsDlg=1′,RefreshOnDialogClose,null,null,'<Title>’);” >New Folder</a>
You are missing a critical part to your “new folder” link. You need a semi colon after the close parenthesis. It should look like this instead: <a href=”javascript:OpenPopUpPageWithTitle(‘/Forms/Upload.aspx?RootFolder=&Type=1&IsDlg=1′,RefreshOnDialogClose,null,null,’’);” >New Folder
You are absolutely correct. Thank you for the correction. I’ve updated the code.
What do you mean by in the above code? Do you mean its name of the document library or site name?
What do you mean by Title?
How do you create a link to add a folder inside another folder?