Friday, November 19, 2010

Announcements ListView WebPart - Modifying View

Using Sharepoint Designer, change the existing listView to XSL DataView and then change the following to modify the view:

<xsl:template name="dvt_1.rowview">
        <p class="ms-vb">
             <a href="http://YourServer/sites/Dev1/Lists/NameOfList/DispForm.aspx?ID={@ID}"><xsl:value-of select="@Title" /></a>
            <br />By
            <xsl:value-of select="@Author" disable-output-escaping="yes" /><br />
            <xsl:value-of select="@Body" disable-output-escaping="yes" /></p></xsl:template>






No comments: