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 FeedsReverse sort order of a feedReverse sort order of a feed
Previous
 
Next
New Post
5/5/2009 7:43 AM
 

 AFAIK, Events 5 does allow to specify, which data GetSearchItem get passed for title, publishing date and content, but I haven't had a look into the code yet.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
8/19/2010 4:01 PM
 
This is about 3 years old, but I figured I'd give an answer for anyone who may still be looking. You can update your XSL transform file to include the following line: Place it directly after the line. The transformations are located in the file system under /DesktopModules/News/Transformations. I would recommend making a copy of the default one and linking the module to the modified file. Vincent @channeldynamix
 
New Post
8/25/2010 8:39 PM
 
channeldynamix wrote:
This is about 3 years old, but I figured I'd give an answer for anyone who may still be looking. You can update your XSL transform file to include the following line: Place it directly after the line. The transformations are located in the file system under /DesktopModules/News/Transformations. I would recommend making a copy of the default one and linking the module to the modified file. Vincent @channeldynamix

 Vincent - It looks as though whatever you typed/pasted for the XSL transform file was stripped by the comments engine. Could you please try again?
Joel

 
New Post
1/31/2011 8:46 PM
 
Has anyone ever figured out how to effectively reverse the sort order of RSS feeds with the News Feeds module by publish date?

I am using the News Feeds to pull calendar events from the Events module, just like Jacob. I have the latest version of the Events module which allows you to specify the pubDate of the RSS feed as the calendar date of the Event. However, no matter what I do, the events are all listed by the News Feeds module in descending order by date, where I'd like then to list in ascending order instead.

I've been playing around with different XSL transformations, and this is my latest attempt (I've added spaces next to the < and > symbols so the content won't be stripped by the commenting engine of this forum):

----------------------
.....
< xsl:for-each select="channel/item" >
< xsl:sort order="descending" select="(1000 * number(pubDate)) + (100 * number(pubDate)) + number(pubDate)"/ >
.....
< /xsl:for-each >
----------------------

I downloaded the source code for this module and found the following code starting on line 226 of the RssAggregator.vb file:

----------------------

' Add the nodes but insert them to reverse the order to pubDate DESC
Dim first As Boolean = True
For Each key As String In nodesList.Keys
If first Then
channelNode.AppendChild(ImportNode(nodesList(key), True))
first = False
Else
channelNode.InsertBefore(ImportNode(nodesList(key), True), channelNode.FirstChild)
End If
Next

----------------------

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.

Does anyone have any ideas?

Thanks,
Joel
 
New Post
3/8/2011 11:25 AM
 
If you are looking at creating a list of upcoming events, it may be worth you looking at this example which uses the events module to create the display, rather than feeding across into a news feed module - http://dnnevents.codeplex.com/wikipag...

Cheers
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 ForumsNews FeedsNews FeedsReverse sort order of a feedReverse sort order of a 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