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


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

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


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

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

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

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

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

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

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

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

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


1

You will have to customize the master page to do what you want. You can customize it, but even if you got more subheadings, the default navigation editor is only going to work at a 2 level instance. I really think that you would have to use some other means (custom code or jquery) to accomplish what you are looking for. I think I have seen a few examples out ...


1

This is interesting because I was recently trying to get this result in a specific case and I was not able to achieve it. In the Documentation for the Document ID Service it says: Document ID Lookup Behavior SharePoint Server 2010 takes a two-part approach when the document ID service looks up document IDs to provide the best balance of ...


1

You can have to modify the list view settings. Go to list settings > Views > All Items (if thats your default view). Uncheck the Title Column(link to item) and select "Title" column without the link to item option. It will work. Refer to the screenshot


1

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


1

I am working on this issue (for the last 6 hours) right now. To resolve this, I went into Sharepoint and edited the fields for the Contact List. I deleted the field named "Web Page", which had a hyperlink datatype. I created a field call "Web Page" which is just a text field. This appears to have fixed the issue and I am now getting my contacts to add to ...


1

There wouldn't really be anyway to prevent them from doing so. However, you could use the suggestion in the answer here: Regex Query Against FAST Search 2010. That is to create an external processor for the search engine that sets a flag true on the indexed item if content on the page matches a regular expression that identifies a link to a local drive. ...


1

Comments cannot be imported into a SharePoint list. A possible work around might be to add a "comments" column with multiple lines of text (append text optional) The trade off would be that you could only comment on the row. You also might be able to mimic "comment like" functionality using jQuery. If you are interested in that approach I suggest posting a ...


1

I have this same problem. I found a workaround where you edit the setting on the document library to require documents to be Checked Out. When you do this, the document still opens Read-Only with no "Edit DOcument" button, but you now have a "Check Out" button which checks out the document and oens it for editing. There are a few more button-clicks to save ...


1

Found the answer: Where do "My site" and "My profiles" links come from? And there actually even is: Activate or deactivate the SocialRibbonControl farm-level feature (SharePoint Server 2010) (MSDN) Enable-SPFeature SocialRibbonControl and the My Site link was back. Disable-SPFeature SocialRibbonControl and it was gone. Perfect. Keep in ...


1

I would recommend creating a custom page (can be layout page, web part page with some JavaScript, etc.) that is the target of the email link. The page should accept a URL parameter which has the value of the URL of the target document. This method is required to ensure that the document opens in Word with the correct "connection" to the SharePoint ...


1

If you still get this problem, try this: e.g if your site link is http://intranet.xx.com/docu/Company/Collaboration/SitePages/Home.aspx , where you added the excel links. In IE, goto tools > Internet options > Security > Trusted Sites, click Sites, Add http://intranet.xx.com (untick Require Server Verification (https:) for all ...)



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