Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsHtml tags on rssHtml tags on rss
Previous
 
Next
New Post
9/1/2005 11:53 AM
 
Forgot to mention, the feed is located at:

http://razedmemory.net/SyndicationService.asmx/GetRss
 
New Post
9/1/2005 12:27 PM
 

In the /DesktopModules/News/RSS91.xsl

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>

<xsl:template match="rss">
  <!-- Do not show channel image -->
  <xsl:for-each select="channel/item">
    <br>

    <strong><a href="{link}" target="_main"><xsl:value-of select="title"/></a></strong><br></br>

    <!-- only display markup for description if it's present -->
    <xsl:value-of select="description"/>

    </br>
    <br></br>
  </xsl:for-each>
</xsl:template>

<xsl:template match="description">
  <br>
    <xsl:value-of select="."/>
  </br>
</xsl:template>

</xsl:stylesheet>

You may remove the red line to get rid of the descriptions

 
New Post
9/1/2005 12:31 PM
 

And thanks for the URL

as previously noted, you may also do the following

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>

<xsl:template match="rss">
  <!-- Do not show channel image -->
  <xsl:for-each select="channel/item">
    <br>

    <strong><a href="{link}" target="_main"><xsl:value-of select="title"/></a></strong><br></br>

    <!-- only display markup for description if it's present -->
    <xsl:value-of disable-output-escaping="yes" select="description" />

    </br>
    <br></br>
  </xsl:for-each>
</xsl:template>

<xsl:template match="description">
  <br>
    <xsl:value-of select="."/>
  </br>
</xsl:template>

</xsl:stylesheet>

just add the green part into the /DesktopModules/News/RSS91.xsl and the HTML tags in the feed will output correctly.

 

 
New Post
9/1/2005 1:26 PM
 
Thanks kindly for the info and help Codepic.  Helped more than you would believe actually.  I took it all one step further and did this:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" indent="yes"/>
<xsl:param name="TITLE"/>

<xsl:template match="rss">
  <!-- Do not show channel image -->
  <xsl:for-each select="channel/item">
    <br>

    <strong><a href="{link}" target="_main"><xsl:value-of select="title"/></a></strong>
    <br>
       <xsl:value-of select="pubDate"/></br>

    <!-- only display markup for description if it's present -->
    <!-- <xsl:value-of disable-output-escaping="yes" select="description"/> -->

    </br>
    <br></br>
  </xsl:for-each>
</xsl:template>

<xsl:template match="description">
  <br>
    <xsl:value-of select="."/>
  </br>
</xsl:template>

</xsl:stylesheet>


You helped me to understand exactly how the xsl style sheet functions.  I decided to leave the modification for the descriptions, as i've now had the idea that a short piece of the description might still be able to be used if I can figure out how to get it to translate into a "tool-tip" style pop up on hover of the title.  The main reason I wanted to get rid of the description in the first place is it seems to have a LOT of text dependant on post, as well as having the habit of stretching out the module to compensate.
 
New Post
9/1/2005 2:15 PM
 
No problem, and thanks for asking.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsHtml tags on rssHtml tags on rss


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out