If you want to add letter tabs on contact list here is good guide how to create this sort of view

Code snippets can be found here: http://sympmarc.com/2009/06/19/alpha-selection-of-list-items/

And step by step video can be found here: http://www.youtube.com/watch?v=OyhgFF5pyEw

Code on website contains small error so I am attaching corrected code

————————————————————————————————————————————-

<xsl:variable name=”Rows” select=”/dsQueryResponse/Rows/Row[

starts-with(@Title, $Letter) or

string-length($Letter) = 0

]”/>

————————————————————————————————————————————-

<xsl:call-template name=”Alpha”>

<xsl:with-param name=”Rows” select=”$Rows”/>

<xsl:with-param name=”RemainingLetters” select=”‘ABCDEFGHIJKLMNOPQRSTUVWXYZ'”/>

</xsl:call-template>

————————————————————————————————————————————-

<xsl:template name=”Alpha”>

<xsl:param name=”Rows”/>

<xsl:param name=”RemainingLetters”/>

<xsl:variable name=”ThisLetter” select=”substring($RemainingLetters, 1, 1)”/>

<td>

<xsl:attribute name=”style”>

<xsl:if test=”$ThisLetter = $Letter”>

font-weight:bold;

</xsl:if>

</xsl:attribute>

<xsl:choose>

<xsl:when test=”count(/dsQueryResponse/Rows/Row[starts-with(@Title, $ThisLetter)])”>

<a href=”{$URL}?Letter={$ThisLetter}”><xsl:value-of select=”$ThisLetter”/></a>

</xsl:when>

<xsl:otherwise>

<xsl:value-of select=”$ThisLetter”/>

</xsl:otherwise>

</xsl:choose>

</td>

<xsl:if test=”string-length($RemainingLetters) &gt; 1″>

<xsl:call-template name=”Alpha”>

<xsl:with-param name=”Rows” select=”$Rows”/>

<xsl:with-param name=”RemainingLetters” select=”substring-after($RemainingLetters, $ThisLetter)”/>

</xsl:call-template>

</xsl:if>

</xsl:template>

————————————————————————————————————————————-

Advertisements