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 FeedsRSS XSL templateRSS XSL template
Previous
 
Next
New Post
1/22/2007 9:17 AM
 

Hi,

I'm new to xml/xsl  so I'm not even sure if what I am about to ask is even possible.

With the newsfeed module I am trying to display the first 5 items from my newsfeed to include the title, publish date and description and then the remaining articles to be shown as a list at the bottom with only the title and publish date visible.

I figured an XSL template would be the way to got and have found examples of code that will do each of the bits individually but I'm not sure how to do it as one or if it is even possible.

Is this possible and has anyone actually tried it.

Thanks in advance.

 
New Post
1/25/2007 6:59 PM
 

Steve:

I will not be able to provide you with a solution, but maybe an alternative.  I remember visiting a site where they accomplished what you're looking for in a different way.

The duplicated the RSS feed.  The first instance was a limited to the first x posts with title, publish date, description.  The second instance (duplicated/same RSS feed) started with post x+1 (ignored the first x posts) and displayed only the title.  Perhaps you're not looking for one XML/XSL template, but two??

Peter's got the best answer below......

You should be able to find some xls templated on dnncreative.com showing how to limit the posts to the first 5+.  Perhaps a little reverse logic would help with beginning with post x+1.  

Just trying to help.  Good luck.

 
New Post
2/13/2007 2:58 PM
 

Not sure if you ever sorted this, but I would have thought you could use

<xsl:choose>
    <xsl:when test="position() <6">
       ....Display settings for first 5
    </xsl:when>
    <xsl:otherwise>
       ....Display settings for the rest
    </xsl:otherwise>
  </xsl:choose>

Not tried this my self, but guessing it should work?

Kind 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 3:38 PM
 
Sorry, I was being lazy!
I can confirm that the above does work. Although you should note that you can't use "<" when creating the file you should use "&lt;".

Hope it 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
3/5/2007 2:33 AM
 

I wonder if Steve Rollins bothered to check back for the answer?  One post and gone?

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsRSS XSL templateRSS XSL template


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