Custom list view customize using XSLT:
In custom list we have different types of view to display.
But when we have a requirement that to show the items in 3*3 matrix mode. Then
how to do it? Here we can achieve this by customize the default available XSLT
in the SharePoint designer.
- Create a custom list with the different fields (Name, Email Id, and Mobile).
- Create a view as “Display View” in my case.
- Open SharePoint designer and click on the lists and libraries.
- Find out your list and open the view (here Display view)
- Change the view from the “Design” tab in the ribbon under the “List view tools” and select the Boxed, no labels design.
- Then click on the Customize XSLT option.
- Then find out the below line in the code
- <xsl:when test="$Position mod 2 = 0">ms-alternating</xsl:when>
- <xsl:when test="$Position mod 2 = 0"
- Change the $Position mod 3 = 0 in both the places and save
- Now you can see the change like below.
Custom list view customization using XSLT in SharePoint 2010