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 FeedsHelpHelp
Previous
 
Next
New Post
9/22/2005 8:59 AM
 
Help 

Hi, I am new to DNN so I need your help.

I have installed forum, and it has rss.asp file, http://humnasutli.inet.hr/forum/rss.asp .

I have add this link to NewsFeed module and it works, but not in the way I would like to because it displays only topics title from the forum. How can I display with NewsFeed module other things like author, link, category etc.?

Thank you very much for your time!

 
New Post
9/22/2005 11:26 AM
 

Hello,

 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>


See the red title and description? The reason you're only seeing the title, and probably it's a link, is that you don't have the description in the xsl style sheet.

here's  one item you have on your RSS feed


<item>
  <title>RSS</title>
  <author>MPouba</author>
  <link>http://humnasutli.inet.hr/forum/topic.asp?TOPIC_ID=868</link>
  <category>NewsFlash</category>
  <pubDate>Sri., 21 Ruj. 2005. 17:06:29 +0100</pubDate>
  <guid>http://humnasutli.inet.hr/forum/topic.asp?TOPIC_ID=868</guid>
</item>


See how the red and green colors match on these 2? You'll need to match the available fields in the /DesktopModules/News/RSS91.xsl to make them showing up on your News module. Don't remove the <xsl:value-of select="description"/> from your XSL file as you might want the descriptions to show up with other feeds. Just keep adding the needed <xsl:value tags into the XSL. Your RSS feed seems pretty much standard format so it doesn't hurt if you just add all of them.

 

 
New Post
9/23/2005 5:28 AM
 

Thank you for your time...

Yes, I have deleted description from xml because I don´t want to show it in NewsFeed module (it is to long and then I have problems)...

I would like to show only the title, author and link...So, I have to keep adding the needed <xsl:value tags into the XSL and that´s it?

 

Thanks again!

 
New Post
9/23/2005 10:27 AM
 

I got my answer...

 

Thank you!

 
New Post
9/23/2005 10:35 AM
 

Yes, that's it. Though keep in mind, if you add HTML tags into the sheet, it needs to be XHTML formatted which means you need to close each tag.

So instead of the HTML <br> you need to use either <br/> or <br></br>

The tags that have a closing tag in HTML, works normally. Like <p></p>

If you use a tag without closing it, you'll get an error.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsHelpHelp


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