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 FeedsLimiting number of items in RSS FeedLimiting number of items in RSS Feed
Previous
 
Next
New Post
11/15/2006 5:50 PM
 

Is it possible to restrict the number of items which show up in a News feed from another portal? The problem I have is that I have linked an RSS module to an Announcements module in  another portal but the RSS feed shows all the announcements ever entered - even old expired ones which are no longer visible on the opriginal page. Am I just missing a configuration setting somewhere?

Thanks.

 
New Post
1/15/2007 4:56 PM
 
I will log this as a bug as it is wrong to allow a link to an expired story.
 
New Post
1/15/2007 4:56 PM
 
I will log this as a bug as it is wrong to allow a link to an expired story.
 
New Post
2/13/2007 2:46 PM
 

Primaveranz,

Not sure if this is still an issue, but I use the following solution (not an RSS expert so don't know if its the best solution!)

In the XSL file if you wrap the display settings in:
<xsl:if test="position() < n"> where n is the number you want less than. So for example, my very simple feed that shows the first 5 items is:

- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
  <xsl:output method="html" />
- <xsl:template match="/">
- <xsl:for-each select="rss/channel/item">
- <xsl:if test="position() < 6">
- <a href="{link}" target="_Blank">
- <strong>
  <xsl:value-of select="title" />
  </strong>
  </a>
  <br />
  <xsl:value-of disable-output-escaping="yes" select="description" />
  (
  <xsl:value-of select="pubDate" />
  )
  <hr />
  </xsl:if>
  </xsl:for-each>
  </xsl:template>
  </xsl:stylesheet>

Hope this helps?

Regards

Pete

Aarrgghhh! User Error DNN Version: 4.4/4.5
Websites: taxinumber.com/taxi-today.com
Like DNN? Yes! Very much, congratulations!
Poor eyesight? Yes! Thankyou very much!
 
New Post
2/13/2007 4:21 PM
 

Hi Peter, Thanks for your reply - you  may not be an expert in RSS but as far as I am concerned you are a genius! Actually when I just pasted your XSL I got this error:-
A critical error has occurred.
'<', hexadecimal value 0x3C, is an invalid attribute character. Line 5, position 27.
But when I replaced
<xsl:if test="position() < 6"> with
<xsl:if test="position() &lt; 6"> it worked like a dream.
Many thanks for your help here it has made a big difference to my intranet!
All the best John.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsLimiting number of items in RSS FeedLimiting number of items in RSS Feed


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