Custom Site action using MenuItemTemplate
Hi, Site action links are by default added by sharepoint but there could be some cases when you feel like adding new site action to navigate to your custom page or OOB page. In this blog, I will explain how you can and what are the various way to do that. Solution 1 (Using Custom Action): You must heard this term if ever got chance to customize the ribbon or any contextual menu. You can very easily add this element to your custom farm solution just by adding a empty module and then add following code in to it. <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="CustomScript" ScriptBlock="function OpenDialog() { window.scrollTo(0, 0); var context = SP.ClientContext.get_current(); var siteUrl = context.get_url(); if (siteUrl == '/') siteUrl = ''; var options = SP.UI.$create_DialogOptions(); options.url = siteUrl + '/_layouts/<url of your cust...