Displaying HTML in the Dataview Webpart (DVWP)

By peter.stilgoe









If you try & display rich html columns or any other columns that uses HTML in a DVWP it will display as the actual HTML as opposed to outputting it as HTML formatted text.

If you added your data using Sharepoint designer “Insert Selected Fields” you need view your DVWP code in SPD & search for:

xsl:value-of select=”@MyHTMLFormattedColumn”

and replace it with

xsl:value-of disable-output-escaping=”yes” select=”@MyHTMLFormattedColumn”

Now your data in this column will display as you expected ie. formatted with the HTML code applied.

Note: In SPD 2010 you will need to convert your DVWP to XSLT, On the ribbon:

List View Tools –> Design –> Customize XSLT

Share

Leggi tutto

Turbo charge your sharepoint lists by using calculated columns to write HTML

By peter.stilgoe









By inluding html in your calculated column formulas you can turbo charge your lists in Sharepoint, see:

Using HTML in calculated columns

Adding traffic light system to Sharepoint lists

Share

Leggi tutto