30

The link can be reproduced using the following link, where "Documents" is the name of the library: http://spsite/_layouts/download.aspx?SourceUrl=http://spsite/Documents/sample.docx Effectively the download.aspx will read the content of the file you send as the SourceUrl, and render it back to you on the HTTP response. Hope that helps


19

I have managed to make this work by combining the information here and here. To enable the bookmark functionality you need to get an admin to enable SharePoint Server Publishing Infrastructure feature on the site collection level and then the SharePoint Server Publishing feature must be activated on the site level. Start by selecting the text that you want ...


12

Solving this problem in the list view can be done simply and without opening SPD: Make sure the value you want to display for the lookup column is also selected as one of the "also show these columns" choices for that lookup (yes, you can include the most helpful column as both the value for 'In this column' as well as tick it in the additional fields list)...


9

You can use different ContentEditor (Script) WebParts for Each Group, set the Target Audience on each WebPart to match your groups. Inside each Webpart add a script which sets a global _MyGroupName variable _MyGroupName='A'; Add a ContentEditor Webpart at the bottom of the page which executes code for everyone switch(_MyGroupName){ case('A'): url=''; ...


8

I was trying James' solution but was having problems building the correct URL of the document. To get the URL you can: Open Dev Tools (F12) Open the Network tab Click 'Start capturing' button Click the download a copy button for the document you want the link for The HTTP GET request URL will appear in the network tab.


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

The only way to do it is use an anchor tag in the code: <a name="MyAnchor"></a> Then add a hyperlink to the page the anchor is on, but include #MyAnchor: http://mysite.com/wiki/page.aspx#MyAnchor If there's a better way, let me know.


7

To open the view item form you need to open DispForm.aspx page for the List Item in a Modal Dialog. The URL for the list item will be something like http://server/Lists/ListName/DispForm.aspx?ID=1 where ID is the list item ID. To open it in a modal dialog use the following code snippet. function openDialog(pageUrl) { SP.UI.ModalDialog.showModalDialog( ...


7

Using JavaScript Object Model, if you need to retrieve value and link of a column of type Hyperlink then following methods are used. get_description(): It will fetch the description of the link you have given get_url(): It will fetch the URL. Note: The method which you have used is correct, in case you do not get values in it, then you must check the ...


6

Ok. This is what you do. Fire up Sharepoint Designer and navigate to the list. On the forms section on the right hand side , click New. Create a new Form for New Item and select the corresponding Content Type to be used at the bottom. Save your form and remember the Form name (Example NewDocument.aspx). Next up, you would normally want your new ...


6

By default your "new list" form will open as what is called a modal window (this is how it overlays your list) but is actually a separate page. To make it easy to get the URL of the form, you can: Open your list, and in the ribbon select List Settings Selected Advanced Settings Scroll to the bottom of the page and find the "dialog" heading and set to no. ...


6

Append Web=1 to the url to instruct it where to open. Of course you have to have all the prereqs in place. /PWA/ProjectBICenter/Documents/AllXLDashboards.xlsx?Web=1 Opens it in Excel Services web page /PWA/ProjectBICenter/Documents/AllXLDashboards.xlsx?Web=0 Opens it in excel


6

Add ?subject= at the end of the mailto link and then add the subject line, replacing spaces with %20. So if you want an email link to go to person@company.com with a subject line that says "this is important", you would format the link as follows: mailto:person@company.com?subject=this%20is%20important you can also add body text by appending &body= and ...


5

Yes, the content type links in the library go to specific URLs. Grab those and then create some simple HTML on your home page and point hyperlinks or buttons to those URLs.


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

someone had a similar issue to you: their solution was to use jquery: $(function() { $("a[href^=mailto:]").each(function(){ var sEmailAddress = $(this).text(); $(this).replaceWith(sEmailAddress); }); }); Preventing SharePoint from converting email addresses to mailto links


5

There is a calculated column 'trick' where you return a number type but use regular string concatenation and an html 'a' tag and the item will show up for you as a link Something like ="<a href='https://www.google.com?q='"&[searchColumn]&"'>click here</a>" You should be able to add your target _blank attribute using the above. EDIT: A ...


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 ...


5

To do this you need to use the build a dynamic string action. In it, you construct your url, description value information. Example, http://google.com, Google. The comma and space are important. Then you use this variable in your update action to set the value. Upon completion of the workflow, you should see it set properly.


5

You'll miss out of the Share part of SharePoint, but sharing can be disabled. On the site collection you want to restrict: Click on the gear and select "Site Settings" Click on "Site Permissions" under "User and Permissions" In the ribbon, click "Access Request Settings" Uncheck "Allow members to share the site and individual files and folders." Uncheck "...


5

This is the limitation of REST API Filter that it cannot filter the Hyperlink fields. So whats the workaround? You can use CAML with REST to achieve what you want. The CAML query will be like: <View><Query><Where><Eq><FieldRef Name='URL'/><Value Type='URL'>url</Value></Eq></Where></Query></...


4

Unfortunately [ID] isn't actually a supported field in calculated columns. When a new item's values are being processed it doesn't yet have an ID, so the calculated field has nothing to work with. Since it's the same code that recalculates the item's values on edit, it doesn't bother looking for the ID then either. However, when the calculated field is ...


4

Customization the Rendering of a Field on a List View using XSLT is preferable option here. Solution Note: the method described below represents one of the possible ways how it could be accomplished with XSLT, i.e.: a)SharePoint Designer (SPD) is used for customization b)XSLT text is embedded using Xsl property in XSLListViewWebPart In ...


4

I am not seeing any way to turn this off but I discovered that if you create a new Calculated field and simply set that field equal to the field giving you trouble that it does not add the mailto link on views. It would at least be a workaround


4

This was not as easy as i first expected but here is my solution: This block opens the new document with the designated libray as default savelocation: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <body> <a href="javascript:;" onclick="CoreInvoke('createNewDocumentWithRedirect2', event, 'http://mysite.local/...


4

This is done purposly. SharePoint uses the hash for MDS (Minimal Download Strategy), and also # is a reserved character in URL:s (used for hash-based navigation)


4

Can't you just click the actual link instead?


4

You need to use 'DisplayFormat` SPFieldUrl fldURLImage = (SPFieldUrl)list.Fields.CreateNewField(SPFieldType.URL.ToString(), "Picture"); fldURLImage.DisplayFormat = SPUrlFieldFormatType.Image; myList.Fields.Add(fldURLImage,SPFieldType.URL, true);


4

I realize this is very late. The above did not work for me so this was my work around: Create a shortcut to the network file Upload the shortcut to a document library in the site it is being linked to Use a link to the shortcut to the network file, in the SharePoint library, for your network file link I used this in Navigation and it works perfect.


4

Yes, the Links in the QuickLaunch are static, but... You can make a link to a static Redirect Page (or Custom APSX Page), where you extract the link to OneDrive and redirect to it with window.location= They will see a blank page.. or make a nice redirect text (just in case somewhting goes wrong in your script)


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