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 ForumsEventsEventsRSS feed to DNN core News sort orderRSS feed to DNN core News sort order
Previous
 
Next
New Post
3/5/2011 2:23 PM
 
Hi,

I have the latest Events module setup using RSS with the "Date to Use" set to  "Event Date". The RSS output is being read by the core DNN Newsfeed module. It works great, except that the calendar entries are sorted from the future date to the current date. It needs to be the other way around: current date to the future (like you would normally read a calendar).

I would have assumed this would be the default sort order.

Any way to change it?

Thanks.
 
New Post
3/5/2011 2:40 PM
 
Hi Jim,

The module outputs the events to the feed based on earliest date to latest date in all instances, no matter what you set the Date to Use as. The Date to Use is used as the publication date, and tell yours RSS reader when the RSS item was published, therefore the more correct item to use is the last updated date.

Sorting for display is done by the program (in your case the DNN Newsfeed) that is consuming tehe RSS feed, and I believe the standard order is to sort by latest published to earliest published.

Hope this is clear.

Roger

DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
New Post
3/5/2011 3:03 PM
 
Thanks for the reply.

You state, "The module outputs the events to the feed based on earliest date to latest date in all instances, no matter what you set the Date to Use as." But, according the tooltips in the Events / RSS settings, the "Date to use:" is described as "Select which date to use as the Publish Date in the RSS feed"

Am I misreading this or am I just mis-understand what it means? Shouldn't I be using the "event date" as the Publish date?

Regardless, I tried all three options for the "Date to use" and they all are sorted by oldest date to the most recent date in the Newsfeed module. So I guess that's where the issue is.

I did look the code for the various XML transformations for the Newsfeed module, and the sort order doesn't appear to be a function of the transformation.

Thanks.
 
New Post
3/5/2011 3:21 PM
 
As a follow-up I looked around the News Feeds module forum and found that I'm not the only one needing to reverse the sort order of the RSS feed:

http://www.dotnetnuke.com/Resources/Forums/tabid/795/forumid/48/threadid/303003/scope/posts/Default.aspx

Jim
 
New Post
3/5/2011 3:36 PM
 
Joel Hullen wrote:
It is clearly sorting by pubDate in descending order. I suppose I could modify this, but I'd rather use the supported version of the News Feeds module and implement my sorting via XSL translations or other means.

Jim,

This is taken from the post youy link to. So you can see that others have recognised that the actual display sort is done by the news feed module. What you control by setting Date to Use is what is used to sort on by the newsfeed module.  I probably shouldn't have mentioned what order the events module puts in out in, because it is irrelevant.

The pubDate mentioned is what you are setting by changing the Date to Use setting. So the tooltip is right, it says thye Publication Date...

Bear in mind the newsfeed module outputs latest first, because it is a news module. It shows what is the newestt news. Logical really, you wouldn't be happy if your newspaper showed you old news as being the most important. pubDate indicates when this news item was created, allowing the newsfeed module to identify what is newest.

Yes others have asked the same question, and when posted in the events forum (I don't monitor other forums) I give the same answer.

Unfortunately my XSLT knowledge isn't good enough to help. There is an implication in the thread you link to that the sort order can be changed, but I'm afraid I  don't know how that is done in the Newsfeed module.

Roger

DNN MVP
Events - Get the latest version - Upgrade now!!
Feedback 6.4.2 - Now available - Give it a go!
Find us on Codeplex - DNN Events, DNN Feedback
Requirements/Bugs - Please submit them on Codeplex
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsEventsEventsRSS feed to DNN core News sort orderRSS feed to DNN core News sort order


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