Sunday, May 20, 2012
Blog Entries

Getting HTML to Display in a DotNetNuke RSS News Feed Module

Nov 14

Written by:
11/14/2007 5:04 PM 

As of DotNetNuke (DNN) 4.7, the RSS News Feed module doesn't display embedded HTML in the Description field because the default transform (RSS91.xsl) in the "DesktopModules\News" folder.

The solution is basically to change:

<xsl:value-of select="description"/>

to:

<xsl:value-of select="description" disable-output-escaping="yes"/>

You could edit this file directly so it would apply to all news feeds you put on your system. However, if you want to control which feeds are allowed to inject arbitrary HTML into your site, then the "clean" way to do this (without changing the DNN installation itself) is to:

  1. Make a copy of the default RSS91.xsl on your local system.
  2. Make the change shown above (and any other formatting changes you might want).
  3. Upload this file into your DotNetNuke files. (I put mine in a "Transforms" folder.)
  4. Reference this file in the Settings for your News module in the News Feed Style Sheet section.

Tags:
Categories:

1 comment(s) so far...


Re: Getting HTML to Display in a DotNetNuke RSS News Feed Module

You can also see more about this subject at http://www.dnncreative.com/RSSNewsFeedXSLStylesheet/tabid/162/Default.aspx

By Larry on   11/14/2007 5:46 PM
Search Blog
Privacy Statement  |  Terms Of Use
Copyright 2007-2011 by Larry Daniele