Tag Info

New answers tagged

0

You might need to properly configure the Alternate Access Mappings so that both "www" and "no-www" are available as endpoints to your Web Application. This post might help understanding how that works: http://blogs.msdn.com/b/sharepoint_strategery/archive/2013/05/27/alternate-access-mappings-explained.aspx Also make sure that the bindings are created in ...


0

If you have the publishing features enabled in your site collection, you can specify the welcome page (ie the default page that is loaded when someone hits example.com or www.example.com). If you don't have the publishing features enabled, you can set your default home page in Sharepoint Designer.


0

You can create a single line text site column in that content type to hold URL information. Create a SPD workflow to populate URL field using update field of current list. This custom column will be available as Quick part in word. This could be an alternate approach as URL is not available as quick part field.


0

Yes, you can use AAM to specify multiple URL for one web application (not site collection). It might be needed to do also modifications to IIS settings. Here are some useful resources: Plan alternate access mappings for SP 2007/2010 Plan alternate access mappings for SP 2013


0

In CSOM you could utilize the following method to resolve ClientContext by request Url: public static class ClientContextUtilities { /// <summary> /// Resolve client context /// </summary> /// <param name="requestUri"></param> /// <param name="context"></param> /// <param ...


2

The following method demonstrates how to resolve ClientContext by request Url: private static bool TryResolveClientContext(Uri requestUri, ref ClientContext context, ICredentials credentials) { var baseUrl = requestUri.GetLeftPart(UriPartial.Authority); for (int i = requestUri.Segments.Length; i >= 0; i--) { var path = ...


0

You can get the File URL using following property function _onSucceed(){ var html=""; for(var i = 0; i <results.length; i++){ html+= results[i].get_item("FileRef"); } } To form the full URL you can use _spPageContextInfo.webAbsoluteUrl + results[i].get_item("FileRef")


1

Ok, I solved it as follows (inspired by this post) - might be helpful for someone else... The idea is to start from the back, removing more and more tokens between '/' from the path until we find the lowest level site URL, which we then use to instantiate the correct ClientContext for the given folder url. The folder itself can then be referenced using ...


0

You will need to update your app with the new url and redeploy to the App Catalog. Make sure you increment the internal version number in the manifest. After you do that, a job will run (it might take up to 24 hours) and the site admins in each site will see that an update is available on the app. When viewing the app in All Site Content the app tile will ...


0

I ended up finding what i needed with SPServices. I used the filter drop down function, Code below. http://spservices.codeplex.com/wikipage?title=%24%28%29.SPServices.SPFilterDropdown $().SPServices.SPFilterDropdown({ relationshipList: "{*List ID*}", relationshipListColumn: "*column Name*", columnName: "*Column Nam*e", ...


0

I guess you will have to create custom New/Edit forms for list items and will have to create custom buttons as below: <td class="ms-toolbar" nowrap="nowrap"> <input type="button" value="Save" name="btnSave" onclick="javascript:{ddwrt:GenFireServerEvent('__commit;__redirect={put your url here} ')}" /> </td> similarly for cancel button: ...


0

Try this var URL = "http://site/site/file.aspx"; $.ajax({ url: URL, type: "POST", contentType: "application/x-www-url-encoded", dataType: "json", headers: { "Accept": "application/json; odata=verbose", }, success: function (data) { if (data.d) { var webUrl = data.d.GetContextWebInformation.WebFullUrl; ...


0

SharePoint 2010 link to new Word Doc: I extracted the "createNewDocumentWithRedirect2" function out of the _initTRAWebPartWPQ2() function created by SharePoint. _initTRAWebPartWPQ2() may be named something else (WPQ2) may be web part relevant. I got this by browsing to my document library, viewing page source, and searching for "createNewDocument". You ...



Top 50 recent answers are included