Tag Info

Hot answers tagged

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


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


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

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

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

Can't you just click the actual link instead?


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

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.


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


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

Not 100% certain this will work, but in theory it's sound and it's the first thing I'd try in this instance Backup the site collection using powershell. Restore the site collection to the new location. Update the ServerRelativeUrl of the blog web. Ensure you call the .Update() method of the blog web object Edit: if you're looking to change Urls with an ...


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

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

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

Ok, I've found the answer. To make Bookmark field visible, SharePoint Server Publishing Infrastructure feature (site collection level) must be activated. To enable this field (after previous step it'll be visible but disabled) SharePoint Server Publishing feature must be activated (site level).


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



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