Tag Info

Hot answers tagged

8

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


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

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


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

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


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

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


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

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

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


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

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.


2

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


2

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.


2

Anchors always work - they are part of the html specification. Now, it is quite possible that a script overrides the behavior, and apparently this is what happens in SP 2010. Try the following tests on a public page: Test 1: link with anchor (one step) http://sp2010.pathtosharepoint.com/SharePoint-User-Toolkit/default.aspx#mainContent You can see that ...


2

You may get some errors while running this script but you will find that its worked too :) URL FIX $hubUrl = "NEW_NAME_OF_WEBAPP" $find = "OLD_NAME_OF_WEBAPP" "Installing..." Add-PSSnapIn Microsoft.SharePoint.PowerShell if ([Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") -eq $null) { throw "Unable to load Microsoft.SharePoint.dll!"; ...


2

The default popup blocker in IE was creating problems. I added an exception for the website in its settings and the problem is now solved.


2

The target attribute is modified by SP.UI.Dialog to get the behaviour it thinks is the right one. The way you can control how links behave in a SharePoint Dialog is by specifying rel attribute on your link. In your case you want sp_DialogLinkInternal like this: <a href="/Blog/Lists/Posts/Post.aspx?ID=1" rel="sp_DialogLinkInternal">Link to post 1 ...


2

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


2

Not sure I'm clear on what the issue is but why are you not using HyperLink control instead? Within the code behind or in the ASCX code, you can set the value of the control easily. Be aware of how the Visual Web Parts actually work: 1) The Web Part - this hosts the control and is how you can create web properties to pass to the control (this provides the ...


2

I did it the following way: Go to the Library Settings / Advanced Settings and set "Launch forms in dialogs?" to No. Go back to the library and open the new document forms (for each content type). The "new forms" will now appear as main content and not in a pop up. While the New Form is open you can copy the URL for each content type`s new form. Switch ...


2

Add spaces? This stackexchange post might help. I think it's a browser thing and not Sharepoint doing that.


2

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


2

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


2

It depends on your URL address. When you visit the server using: myapp.test.com, all urls will have myapp.test.com as a prefix. The same thing applies to myapp-edit.test.com


2

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


2

Ahh, found it. Links must use fore-slashes, file://X:/Some/Folder/Foobar.xls. Annoying because one can't simply copy-n-paste from a Windows Explorer address bar, but at least it works.


2

I am correcting this answer due to finding flaws with editing forms and content types using this type of hard coded link. Please follow the same steps except use this code string below... ...


2

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)


2

If you download and edit the Masterpage through the web UI, you could add a button or link that goes back one page. The button could look like anything as long as it calls a function like: function goBack(){ history.go(-1); } Source Then you re-upload the Masterpage with the same file name. When making the button/link you can either place it ...



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