A Practical Guide to SharePoint 2013

A Practical Guide to SharePoint 2013
A Practical Guide to SharePoint 2013 - Book by Saifullah Shafiq
Showing posts with label XSLT. Show all posts
Showing posts with label XSLT. Show all posts

Wednesday, September 7, 2011

Pimp Document Ratings within SharePoint Search Results (Via Todd)

Extracted “A good friend of mine Steve Peschka did a blog post during the SharePoint 2010 Beta which shows how to include a document’s rating within search results without writing any code. Well its been almost a year since that post and allot of things have changed. Since we RTM’ed SharePoint 2010 there are several key components to that blog that no longer work and this post is an attempt to update and hopefully add a little to the effort he started.

Turn on Ratings

To get started obviously we need Rating turned on in at least one list or library. For this example I will use a document library were I have uploaded a number of PowerPoint presentations and a few documents. To enable ratings I need to navigate to this document library and choosing “List settings” from the ribbon. From the Document Library settings page I choose “Rating settings” and I am presented with a super easy page to enable Ratings

Complete post here.


Friday, September 2, 2011

Customizing Search Core Result xslt in Sharepoint 2010(Via ken zheng)

Steps how you can customize serch core result xslt in sharepoint 2010.

Visit Ken’s blog here to read the complete post.


Tuesday, August 2, 2011

Bug With SharePoint 2010 XSLT DateFormatFunction(VIA estruyf)

Extracted from the original post

Yesterday I found out that there is a problem/bug using the XSLT ddwrt:DateFormat function. The problem/bug occurs when the regional settings is not set to English (United States).

When a day got the value between 1 and 12, the ddwrt:DateFormat function will recognize this as the month. The month value will be used as the day.

So if the day value is less than 13, you get the following problem:

US Date Format

ddwrt:DateFormatTime(date, 1043, ‘dd-MMMM-yyyy’)

8/6/2011

8-June-2011

2/3/2011

2-March-2011

When the day value is larger than 13, you get the correct formatting:

So if the day value is less than 13, you get the following problem:

US Date Format

ddwrt:DateFormatTime(date, 1043, ‘dd-MMMM-yyyy’)

8/19/2011

19-August-2011

2/30/2011

30-February-2011

I did not notice it in the beginning, because my settings are always set to English (United States) on my development server. When I implemented the XSLT stylesheet on a different environment, where the regional settings were set to Dutch (Belgium), some of dates were incorrectly formatted.

For complete blog post click here.

Wednesday, July 27, 2011

SharePoint 2010 Content Query for Blog Posts(Via Erik Swenson)

Extracted from the original post

I hope this post will help many of you feel comfortable with using the Content Query Web Part.

In this post I will walk you through the process of creating a content query web part and configuring it to show custom field types. I will also give details on how to use XSLT to stylize and format the data being pulled.

I will be using the following scenario as an example. Say that you had a site collection with a top level publishing site. This publishing site would display a most recent blog posts from all blog sites within its own site collection.

For complete blog feel free to visit Erik’s blog post here.