Tag Info

Hot answers tagged

8

A content editor web part can load the source HTML from a file and doesn't reformat it. Store the HTML in a file called "calendarhtml.txt", or something meaningful, and point the cewp to that.


7

Make sure to also add the URLs into: Central Administration > System Settings > Configure alternate access mappings .


6

Not really an answer (not an answer you want to hear anyway) but.. I'm no fan of these redirects. Its healthy for the user to be observant regarding when a page is secure and when it is not. Also several SSL exploits takes advantage of HTTP > HTTPS redirects to hijack session and perform man in the middle attacks, so my answer would be to talk your customer ...


6

Code below should do the trick Page.Request.RawUrl


6

According to Microsoft: You cannot use the period character at the end of a site name, a subsite name, or a site group name. You cannot use the period character at the end of a folder name. You cannot use the period character at the end of a file name http://support.microsoft.com/kb/905231/en-us Are you looking for a way to by-pass this directive?


6

A more global fix can be found by editing Search.ClientControls.js until a permanent fix is found. This will present you with a farm-wide fix, that not only fixes People Search, but other contextual searches as well. I've documented the workaround, but it involves removing references to a new function named encodeURI introduced by April 2014 CU/MS14-022 ...


6

Here's one that's useful when you want to put a Web Part page into edit mode but you don't have the option in the UI: ?toolpaneview=2 I explain it more fully in this post: http://sympmarc.com/2010/10/27/add-web-parts-to-sharepoint-forms-without-sharepoint-designer/


6

[url]?IsDlg=1 renders the page in dialog mode (no navigation). [url]?mobile=0 renders the desktop page on a mobile device. [ListViewURL]?FilterField1=fieldName&FilterValue1=value filters a list view (can be extended to FilterFieldnn).


5

You should be able to use the available property to build the url you require. Just be aware that many of the property must be accessed with a *get_method* sintax. For the SP.Site use the get_url() "property". For the SP.Web use the get_serverRelativeUrl() property and build up the full url. For the list... don't know if there is an easier way, but you can ...


5

What about doing something like this... Force SSL on the site, and redirect users who get an error on the non-SSL site. http://www.servicefirstsupport.com/KB/a178/how-do-i-force-https-redirect-in-iis.aspx http://www.jppinto.com/2009/04/automatically-redirect-http-requests-to-https-iis-7/


5

I have had good luck placing links in Web Part Pages Content Editors with javascript when I don't want SharePoint to change a relative URL to an Absolute. Maybe that will work. <A title="A Test" href="javascript:window.location.href('http://myaddresshere.com/tech/@234?i=whatever')">My Link</A>. See if that works


5

There are a couple of methods for this available in the object model without the need to handle the slashes etc yourself, one method using MakeFullUrl: var fullUrl = item.ParentList.ParentWeb.Site.MakeFullUrl(item.ParentList.DefaultDisplayFormUrl); Parameters strUrl Type: System.String A string that specifies the server-relative ...


5

This is a file that's located on the server's file system. Microsoft definitely doesn't recommend changing this file for the following reasons: Having multiple web front ends means you will have to change the page layout on each of these servers. If the different servers are using different files on their file system, different users will get different ...


4

What you are referring to are usually called "vanity URLs" because they are used by marketing more than the end users. One free product from Microsoft that can do this is the URL Rewriter. It is actually for IIS but works with SharePoint. This works well and is performant but does have a few drawbacks: It requires a server Admin to add new URl redirects ...


4

I haven't tested this, but I would think you can add it with a javascript maybe. You already have the _spPageContextInfo on your sites. <script type="text/javascript"> document.write('<a href=\"'+_spPageContextInfo.webServerRelativeUrl+'/page.aspx\">link</a>'); </script> That's just an example, probably not the best way to add js ...


4

It should work: <UrlAction Url="javascript:void(window.open('http://www.google.com','_blank'))"/>


4

For each special character, that character length is multiplied by three. I.E. '@' now turns into 3 characters into the URL. Count the number of special characters for the file that got uploaded with the file that didn't. Also the paths get stored in different areas: Excerpt: The limitations In this section apply to the total length of the URL path ...


4

You have to use SPFieldUrlValue. Here is an example: string FullURL = artistWeb.Site.MakeFullUrl(relURL); SPFieldUrlValue UrlValue = new SPFieldUrlValue(); UrlValue.Description = "Put desciption here"; UrlValue.Url = FullUrl; listItem["URL"] = UrlValue; listItem.Update();


4

From a technical point they're exactly the same. The only difference is the way users think of site collections beneath each of them. So it's common to use "/teams/" for site collections for individual teams and "/sites/" for everything else (in SharePoint Online, On-Premises often create their own) "/sites/" and "/teams/" is what is called managed paths in ...


4

Everywhere in this answer replace sp2010 with your site url, Table with your list name, PortalHomeDataContext with your site name (without spaces) + DataContext and RestTest.ServiceReference1 with your generated namespace. This is tested against a SharePoint 2010 site: http://sp2010/_vti_bin/listdata.svc/Table?$filter=(Color eq 'Red') and (Active eq false) ...


4

@PirateEric Sorry but this is untrue. Anyone who finds this as I did searching for a way to change the List URL of a SharePoint 2013 last can do so in Designer by following the steps outlined in this SO post: http://stackoverflow.com/questions/12904944/change-sharepoint-library-url Essentially: In SharePoint Designer just navigate to All Files navigation ...


4

When you create the Web Application you decide what should be the URL of it. And in your setup it should not be the URL of any of your servers, but the URL for the load balancer which distributes the work between wfe01 and wfe02. And normally you'll leave the web application service running on the App server as well and let Search Crawl use that locally by ...


4

Can't you just click the actual link instead?


3

Joel Oleson wrote about SharePoint URL Shorteners some time ago. One of his links point to a product I worked on so the usual disclaimers apply.


3

There is no OOB features for this in SharePoint, but it's quite easy to build. If you Bingle it you will find tons of samples; for instance: http://spurlshortener.codeplex.com/


3

The URL links in SPS2010 are limited do 255 characters. Using a shortening URL service is one solution, maybe microsoft should implement this system in the next version of Sharepoint


3

That is an option, however, search would not show those same urls. If you wanted to actually do host header site collections, this would ensure that you have the URLs that are friendly in the search results, and would allow the end user to search using that part of the URL as well. However, there are some disadvantages to the host header URLs as well. You ...


3

Alternative access map is the feature desgined specifically for the purpose you describe. The instructions I have linked to are for SharePoint v3 (WSS 3.0 and MOSS 2007), but remain the same for v4 (Foundation 2010, Server 2010). To my knowledge Microsoft has not provided updated instructions for the 2010 products and does reference this article in some of ...


3

Here is a good tutorial of how to coexist HTTP and HTTPS. It point out some problems like the cookie which is not shared. You might take a look. http://blogs.visigo.com/chriscoulson/mixed-http-and-https-content-with-sharepoint-2010/


3

MSDN says that when assign a value to a list item field you must provide a string, but its not true for complicated fields such url or others. You must use this approach: var fvalue = new SP.FieldUrlValue(); fvalue.set_url("http://google.com"); fvalue.set_description("my description"); newListItem.set_item("linkfield", fvalue); Useful resource about CSOM ...



Only top voted, non community-wiki answers of a minimum length are eligible