SharePoint 2013 QuickLinksMicroView webpart and MyLinks hidden list – How To Use them

A quick tip on how to use the MyLinks list in SharePoint 2013 which is “hidden”.

To access the list you have to use a “back door”. Type after your mysite address the following aspx location:

http://mysite.dev/_layouts/15/myquicklinks.aspx

To add a link to add a new link list item to the location mentioned above you can use the following JavaScript and HTML to create such an action(you can do this from anywhere in SharePoint):

<script type=”text/javascript”>

function displayLayover(url) {

var options = SP.UI.$create_DialogOptions();

options.url = url;

options.dialogReturnValueCallback = Function.createDelegate(

null, null);

SP.UI.ModalDialog.showModalDialog(options);

}

</script>
<a href=”javascript:displayLayover(‘/_layouts/QuickLinksDialogForm.aspx?Mode=Link’)”>Add Item </a>

The above code will create a modal dialog pointing to the specified list, mylinks list.

 

If you want more functionality related to the MyLinks just open the aspx page in the SharePoint hive and hack it :).

C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS

  • myquicklinks.aspx
  • quicklinksdialogform.aspx

The above add link in the aspx page can be found with this line of JavaScript:

function CreateNewQuickLink()
{
ShowNewQuicklinkPopup(‘QuickLinksDialogForm.aspx?Mode=Link’, PageRefreshOnDialogClose);
}

When you are ready you can add the QuickLinksMicroView -webpart anywhere and it will instantly show the links in your MyLinks list.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s