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 Feedsthis news feed does not show properlythis news feed does not show properly
Previous
 
Next
New Post
3/2/2006 4:29 PM
 

Great post!  A proper XSL transformation file is definitely the way to go for many people and provides a lot of flexibility.  Going forward, I think this module should have the flexibility to allow for custom XSL transformation files, but do more by default to support the most common RSS/atom formats.  Understanding RSS in general is a hard enough concept for many people to understand.  Dealing with XSL transformation files requires some technical knowledge, and having that be the only way someone can use the already confusing (to some) RSS feeds is not ideal from a usability perspective.  Even if someone as nice as yourself posts a sample transformation file, the end user still had to go through the trouble of searching for it.  I am curious about your opinion on this topic and how you might suggest implementing something like this?  Thanks. 

 
New Post
3/3/2006 11:23 AM
 

There are many opportunities for improvement with the standard News Feed RSS module.  When I was a member of the CT, we had targeted several improvements, including handling more in the way of auto-detection of news feed RSS versions.  That definitely is something worthwhile, and I agree that the current module is pretty basic and requires more than a cursory understanding of RSS and XSL to be useful for a lot of folks.  However, given the fact that the module has not really changed over the last version, it's not surprising that as RSS feeds became more popular that some would mature beyond the scope of basic implementation.

However, the basic module does allow customization using xsl, just as the HTML module would allow a more experienced web developer to get more out of it.  Now, the obvious point is to encourage anyone who has knowledge of RSS and programming ability to use it to further the scope and usefullness of the module for the rest of the DNN community.  That's always a good thing, and know that the CT would appreciate any helpful resources that would improve the module.  I don't have time at the moment to lend a hand in that regard, but eventually hope to get back to it. 

Basically, your point is well taken.

 
New Post
3/3/2006 11:51 AM
 
Believe me, I'm not critisizing in a negative way.  The current module is quite functional.  Yes it requires more functionality, which is why I have volunteered to become project lead for this project and make sure it happens.  I am working on a spec right now to describe the changes that we will be making to it, and look forward to sharing it with you and everyone else to get their opinions.
 
New Post
3/21/2006 4:37 PM
 

roseta,

Don't know if you ever got that newsfeed to work or not.  If you didn't, you can try using this xsl, which I used for testing this newsfeed on my dev DNNv4.0.2 box.  Copy and Paste to a file editor, save, then upload to your site.  Then, you can specify it for the xsl file in the news feed (rss) module.

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet exclude-result-prefixes="rdf rss l dc admin content xsl"
  version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                  xmlns:rss="http://purl.org/rss/1.0/"
                 xmlns:dc="http://purl.org/dc/elements/1.1/"
                  xmlns:rss09="http://my.netscape.com/rdf/simple/0.9/"
      xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0"
                xmlns:admin="http://webns.net/mvcb/"
                  xmlns:l="http://purl.org/rss/1.0/modules/link/"
                  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<!-- moreRDF - a bit more advanced RDF stylesheet - Phil 'iwonder' Guerra -->
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/rdf:RDF">
                <div>
                <xsl:apply-templates select="rss:channel" />
              </div>
      <div id="newslist">
            <xsl:apply-templates select="rss:item" />
    </div> <font size="1"><i>(iwonder moreRDF)</i></font>       </xsl:template>
        <xsl:template match="rss:channel">
                <xsl:variable name="link" select="rss:link"/>
                <xsl:variable name="description" select="rss:description"/>
                <xsl:variable name="image" select="/rdf:RDF/rss:image/rss:url"/>
                 <xsl:variable name="rightsPeriod" select="substring-before(dc:rights,',')"/>
                <xsl:variable name="rightsPhrase" select="substring-before(dc:rights,'All ')"/>
      <xsl:variable name="rightsOwner"  select="substring-after($rightsPhrase,', ')" />
               <xsl:if test="$image"> 
                       <a href="{$link}"><img src="{$image}" border="0"  /> </a>
                </xsl:if>
     <br/>
     <font size="3"><xsl:value-of select="rss:description" /></font><br/><br/>
     <xsl:value-of select="$rightsPeriod" /><br/>
     <xsl:value-of select="$rightsOwner" /><br/>
     <xsl:value-of select="substring-after(dc:rights,'Inc. ')" /><br/>
     Last Update: <xsl:value-of select="dc:date" />
                <hr/>
        </xsl:template>
<xsl:template match="rss:item">
           <font size="2"><b><xsl:value-of select="rss:title"/></b></font><br/>
    <font size="1"><b><xsl:value-of select="dc:creator" /></b><br/>
    Published: <xsl:value-of select="dc:date" /></font><br/><br/>
    <xsl:value-of select="rss:description" disable-output-escaping="yes" />
           <xsl:element name="a">
              <xsl:attribute name="href">
                  <xsl:apply-templates select="rss:link"/>
             </xsl:attribute><br/><br/>
     
       <font size="1">Click for details...</font>       
     </xsl:element><hr/>
</xsl:template>
</xsl:stylesheet>

 
New Post
3/21/2006 8:59 PM
 
Your Transform code worked like a charm for me.  Thanks for the effort!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews Feedsthis news feed does not show properlythis news feed does not show properly


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