I've created a custom ItemStyle_ContactDetails.xsl for a SharePoint 2010 content query web part, which points to this custom file via the ItemXslLink
property. The web part will be filtered to display only one record for that department's contact info. The list it's reading has these columns:
- @Title -- built-in SharePoint column
- /dsQueryResponse/Rows/Row/@WorkAddress -- built-in SharePoint column
- /dsQueryResponse/Rows/Row/@PrimaryNumber -- built-in SharePoint column
- @EMail -- built-in SharePoint column
- @Opening_x0020_Hours -- custom multi-line rich text column
The above names are what they're called in the Data View Web Part from another site. I had the following in that DVWP that worked for a local site:
<td colspan="2" class="ms-vb" style="text-align:center">
<b><xsl:value-of select="@Title"/></b><br></br>
<div style="margin-top:10px;"><xsl:value-of
select="/dsQueryResponse/Rows/Row/@WorkAddress"/>
(<a href="{@Map}">MAP</a>)
</div>
Tel: <xsl:value-of select="/dsQueryResponse/Rows/Row/@PrimaryNumber"/><br></br>
<a href="mailto:{@EMail}"><xsl:value-of select="@EMail"/></a>
<p><b>Opening Hours:</b></p>
<div style="position:relative; top:0; margin:0">
<xsl:value-of select="@Opening_x0020_Hours"
disable-output-escaping="yes"/>
</div>
</td>
How do I translate this to the custom ItemStyle_ContactDetails.xsl template? The user needs to see the info without having to click a link to get to it -- it's always going to be just one record for that department. Thanks.