Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Use sharepoint default Token inside the URL

$
0
0

Hi,

I need to assign the url to ClientOnClickNavigateUrl attribute of custom Sharepoint Menu Item Template

 <SharePoint:MenuItemTemplate runat="server" ID="MenuItem_AddNewPage"
                        Text="Add a Page"
                        Description="<%$Resources:wss,siteactions_createpagedesc%>"
                        ImageUrl="/_layouts/15/images/NewContentPageHH.png?rev=23"
                        MenuGroupId="200"
                        Sequence="220"
                        UseShortId="true"
                        ClientOnClickNavigateUrl=""
                        PermissionsString="AddListItems, EditListItems"
                        PermissionMode="All" />  

In my case, I need to assign the url in below format

http://ils-yas:6482/_layouts/15/CreatePage.aspx?Source=http://ils-yas:6482/Pages/Forms/AllItems.aspx

I used the token "~siteLayouts" to replace this url  : http://ils-yas:6482/_layouts/15

which default token i have to use for replacing this url : http://ils-yas:6482  ..i.e.SiteURL 

I tried with these tokens :  ~site , {Site},{SiteUrl},{SiteCollection}

No change in middle of the url

Suggest me any other way

Thanks


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>