Hot answers tagged

18

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


10

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


9

You need to apply the style to the IMG, not the HREF. This will show the blue border (at least in IE and Firefox, Chrome doesn't) <a href="http://sharepoint.stackexchange.com"> <img src="http://cdn.sstatic.net/sharepoint/img/logo.png"> </a> Neither of these will, first using the 'old style' border attribute <a ...


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

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.


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

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


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

Can't you just click the actual link instead?


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


4

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.


4

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


4

After a fair amount of Google-fu I finally found a MS KB article that helped. You have to open Regedit.exe and add a new DWORD value OpenDocumentsReadWriteWhileBrowsing to HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Common\Internet and set it to 1. Now clicking on a link will open the file in edit mode, which is fine for my purposes.


3

For whatever reason, the "Display icon" functionality of the Publishing Hyperlink field doesn't work on our SharePoint 2010 Server for a team site with Publishing enabled. We added URLs to a column of that type for PDF files, but no PDF icons appeared. In fact, the value for the "Display icon" field wasn't "sticky" -- it kept getting unchecked. So we found ...


3

I've been trying the SEO IIS Extension from Microsoft and WinHTTrack, although my results are rather limited as we use Forms Based Authentication and neither of them do well with the pages under authentication. That's where I really want to be able to do some reporting, but the options look to be limited. Maybe I'll try my hand at hacking the CodePlex ...


3

Just add the anchor tag with a dynamic link to the bottom of your itemstyle xsl and then wrap it with an xsl:if statement to check the position to see if the last list item is last. <xsl:if test="position() =last()"> <a href="link.aspx">View all items</a> </xsl:if> If you want to make the href dynamic, find a source for the link ...


3

John, The OpenPopUpPage() method takes multiple arguments and from what I have found scrubbing the internet, you must include the callback method when using it so that you do not get a blank dialog (even if it means just passing null). Try the following: OpenPopUpPage('/sites/Intranet/SitePages/AboutIntranet.aspx', RefreshPage); Reference MSDN Page


3

How Picture Library Slideshow web part works Picture items are retrieved via SPQuery from Picture Library and results are saved in internal array of ImageInfo entries public struct ImageInfo { public int width; public int height; public string src; public string fullImageSrc; public string title; public string ...


3

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.


3

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


3

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


3

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


3

On the document library create a view sorted descending on the column which you want to use in your definition of latest item (Id, Modified, Created, ...) with a limit of 1 item and just showing the column "Title (linked to item)" Insert a List View Web Part using that view on the page.


3

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:;" ...


3

This article describes an old trick for making certain links open in a new tab. Just append the url for any link you want to open in a new tab with #openinnewtab, and add the following javascript code (master page would be best): $(document).ready(function() { $('a[href$="#openinnewtab"]').attr('target', '_blank'); });


3

Create a calculated column and concat "https://link/sites/sitename/Lists/listname/DispForm.aspx?ID=" and item id. This will suffice your requirement. Also if you want to display column value as a link, check out this link. If workflow is an option, you can start a workflow on item created and set a hyperlink column with item's display form URL. Check the ...


3

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)


2

The problem is that your browser thinks you are adding querystring parameters. In order to make it work, you will have to encode the department names. The "&" ampersands should become this "%26". The encoding of your departments can be done by using the following JavaScript function: encodeURIComponent(departmentName) So in your example you can write ...


2

Instead of K:/ try file://K:/ Or even better, find out the real address of the fileshare that you've got mapped to the drive letter K. When you go to your Computer and you see the K drive listed under Network Locations, does it have a name like Something (\\contoso.com) (K:)? If it was named using the default values when mapping a drive, that would mean ...


2

You should be able to achieve this using a calculated field. You can build your code into the calculated field. One thing to do though is make sure you set the calculated field to numeric and not text. It needs the numeric setting to render properly. You can find an example similar to your situation here: ...



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