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 Feedsnews feed options ? news feed options ?
Previous
 
Next
New Post
2/24/2007 1:11 PM
 

how I can show only the last 3 news ? if the news feed had 10 news? I dont'  find any option to select the numer of news.

how can I change the look and feel of the news feed? is there a css?

David

 

 

 
New Post
2/26/2007 12:20 PM
 

Try this...

In your module settings:

type of display: list item
select an item type to display: article
select a category: enter your category name
max items to display: 3

 
New Post
3/2/2007 12:24 PM
 

Hi, I'm using the version 03.01.01 and didn't found this option, how can I show only the 5 (or 3) last news?

 

Thanks

Gilson.

 
New Post
3/2/2007 12:59 PM
 

I found the answer in another topic:

http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/48/threadid/84703/scope/posts/Default.aspx

THANKS !

gbeckman wrote

Hi, I'm using the version 03.01.01 and didn't found this option, how can I show only the 5 (or 3) last news?

 Thanks

Gilson.

 
New Post
3/2/2007 2:47 PM
 

First, you need to understand that v03.01.01 is using a default translation file (xsl) to  parse the newsfeed you are reading.  By defaults that version uses a simple xsl file to do the work.  It's located in the /DesktopModules\News folder and named: RSS91.xsl.

Generally, to customize a newsfeed's output, you need to use a custom xsl file.  The trick is understanding your source rss news feed, as every one is a bit different.

You can copy the default dnn xsl file, then open it up to modify it to suit your need.  Save the new file, then upload it to your portal.  When you place a RSS News module specify the newly created xsl file as the translation file.

To illustrate the process, I used the DNN news as a source, then used the following xsl to translate it, limiting the display to 3 items.  If your source generates sorted items by descending date, you are in business.  If not, you need to do a bit more with xsl.

A basic shell for displaying only 3 items can be done with this code:

<?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">
   <xsl:if test="position() &lt; 4">
    <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:if>
  </xsl:for-each>
 </xsl:template>
 <xsl:template match="description">
  <br>
   <xsl:value-of select="."/>
  </br>
 </xsl:template>
</xsl:stylesheet>

Note the highlighted lines are the ones used to limit the display to 3 items.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews Feedsnews feed options ? news feed options ?


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