Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spurl]

The tag has no usage guidance.

1
vote
0answers
5 views

When is the $SPUrl Token Prefix Needed?

I have been doing some research and testing and found that the $SPUrl tokens (e.g. ~site and ~sitecollection) can be used in various scenarios to reference the root of the current site or web. However,...
0
votes
2answers
37 views

Change href of logo for a blank site

I am creating a sharepoint blank site wherein I have changed the logo image with the help of these steps https://www.fpweb.net/sharepoint-blog/how-to-change-the-logo-on-your-sharepoint-2013-site/ Now,...
1
vote
1answer
760 views

_sppagecontextinfo is not defined in SharePoint master page

I am creating a custom master page where I have used _sppagecontextinfo.webabsoluteurl but I am getting _sppagecontextinfo as undefined. What is work around to get it in master page?
1
vote
0answers
144 views

JavaScript function in URL field value

Is it possible to set the value for the URL field so that when clicked it runs a JavaScript function? I have created a field which stores links to files in SharePoint, but when clicked, the file is ...
20
votes
3answers
17k views

CssRegistration with $SPUrl doesn't work

I'm using SharePoint 2013 and I have created master page file (as .html) and converted it to .master file. As I have read, I should only modify html file, because all changes will be also registered ...
1
vote
1answer
2k views

JQuery Ajax Post method not working with Sharepoint 2010 URL

I'm trying to send some data to an aspx page by clickin on button but it doesn't seem to work by using jQuery Ajax Post ,however if I just chage the ajax type to GET it works fine ! but I do really ...
1
vote
1answer
783 views

joining absolute and relative URLs of sharepoint in <a href> anchor tag

I want to join absolute and relative URL parts of a sharepoint site in <a href="http://somesite"> tag. i already have this: strng.Format(@"<a href=""/_layouts/something/Mypage.aspx?...
0
votes
2answers
867 views

How to enable SPUrl in SharePoint 2010?

I'm upgrading from SharePoint 2007 to 2010 and the $SPUrl:~sitecollection expression doesn't appear to be working anymore. It replaces ~sitecollection with the current site URL instead of the root URL....
17
votes
3answers
5k views

What are all possible values for use with SPUrl?

So I've discovered: $SPUrl:~SiteCollection $SPUrl:~Site ~language (e.g. $SPUrl:~Site/yadda/~language/yadda or whatever) Where can I find a comprehensive listing of what's available for use with $...
3
votes
3answers
2k views

Coding against SPUrl

How can I work with SPUrl in my code-behind file for master pages and page layouts? I don't see any access to this in the SharePoint namespaces.