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 in Chronological orderNews in Chronological order
Previous
 
Next
New Post
7/15/2007 9:56 PM
 

Hi

I am using google news feed for my rss module and RSS91 style sheet.The news appears as shown below

first the news on 15th is shown then 16th and 14th and then again 15th.Is there a way that

i can show the news in chronological order i.e all news on 16th first then 15th and so on.


Google News


 


Sun, 15 Jul 2007 15:51:42 GMT
 



Mon, 16 Jul 2007 01:21:59 GMT
 


Sun, 15 Jul 2007 19:08:39 GMT
 

 

Thanks in advance.

 
New Post
7/16/2007 12:53 PM
 

Short answer - not with the current News (RSS Newsfeeds) module.  The only thing this module is really doing is taking your URL for the newsource, generating a web request, taking the response, and formatting it with the specified XSL transformation file.

Basically, every news feed differs in it's use of the pubDate element, shouldn't but there it is.  The specs call for a particular format for the date, but XSL really doesn't know anything about dates, so it's just treated as text.  Scripting in XSL is possible, so theoretically, you could parse the element, change it through code, and sort it, but scripting in XSL gives bad performance issues, as well as, lends itself to some cross-site scripting security issues.  In general, posts in feeds are in reverse date order, meaning date descending order, you could check for the pubDate element, and do some sorting with it, but as I said, every feed is a bit different, so you would need to eyeball your feed and try coming up with a suitable XSL to match your specific needs.

 

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsNews in Chronological orderNews in Chronological 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