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 FeedsDatetime formatDatetime format
Previous
 
Next
New Post
3/10/2009 6:40 AM
 

Is there a way to get it to display pubdate and time in a nice manner?

I have figured out how to add the pubdate, but it is too much info, I would like to have the publishing time like hh:mm?

How do I format it in the best/easiest way?

/Jari Ivanoff

 
New Post
3/10/2009 7:04 AM
 

 splitted of, please use a different thread per subject.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/10/2009 11:25 AM
 

One of the things to understand about the News module is that it is a consumer of newfeeds not the generator of news feeds.  A newsfeed provider publishes their feed according to the specs of one of many formats used, RSS, Atom, or OPML.  The specs are not always followed. The News module will take published date information, and 'convert' it to pubDate acording to RSS v2.0 specifications.  This process assumes that the information passed is in a format that can be converted.  Note hat pubDate is not part of the Atom or OPML spec exactly.  So, in this processing, it works best if the module when used in aggregating feeds contain feeds of the same type.  It's not mandatory, but it helps.

Now, more to the point.  Yes, you can change the pubDate to display in whatever format you need, but you need to provide an RSS v2.0 XSL to do it.  This part, also, assumes that the feeds you are using conform to RSSv2.0 specs with regards to how they pass the pubDate.  The effort requires some knowledge of XSL to program for the formatting change. 

From having worked with XSL and newsfeeds, I can say that such manipulation is not worth my trouble, as newsfeed providers are notorious for not providing any consistency in publishing feeds that conform to RSS v2.0 specs, or any other for that matter.  While, I'd like to trust those providers, I've not seen much to alter my view.  My approach is to take what's given to lessen my constantly updating and providing new XSL's to deal with the issues.

Not saying it can't be done for some feeds, but generally, it's going to cause a lot of extra work to keep up.  Also, if you are using syndication from DNN modules, the HH:MM is not always captured by the parent module itself, so the time always reverts to the same time.  The Announcements module works that way.  It does not capture HH:MM, and the hour is appended according to how your SQL server is configured.  Many other modules are the same.  So, with DNN that type of change would be pointless.

 

 
New Post
3/11/2009 4:11 AM
 

Ahh.. okay.. well, then I'll skip it... :-)

Thanks for a good answer...

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsDatetime formatDatetime format


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