By Chris Croft on Tuesday, 09 September 2014
Posted in General Issues
Replies 9
Likes 0
Views 346
Votes 0
Would it be possible to have the RSS to include the publish date and time of each article and have the importer set them.

What we are trying to do is syndicate the posts to many of our sites, so we need this information sent to the syndicate sites from the main site.
Hello Chris,

Did you mean this publish date? http://screencast.com/t/hzvFoqvE . As for the time of each article and have the importer set them., can you elaborate more on it? Please advise.
·
Tuesday, 09 September 2014 10:16
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick
As you moved it to the EasyBlog section, I can't reply using my personal account (so using a friend's account who has subscription).

I am look to include the 'Unpublish Date' as set in the post settings. This is so the syndicate site will have the 'Unpublish Date' set.

Chris
·
Wednesday, 10 September 2014 08:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

We are sorry, but is not possible. If you see this: http://validator.w3.org/feed/docs/rss2.html , there is no API for unpublish date.
·
Wednesday, 10 September 2014 10:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi

But it is possible by extending RSS using Namespaces see http://www.disobey.com/detergent/2002/extendingrss2/

This allows you to add any field you want.
·
Wednesday, 10 September 2014 10:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

Hm, interesting. Thanks for sharing. We will go deep into this and will try to port it in our code. If you want to try it yourself, you might want to go to this file: ../components/com_easyblog/views/latest/view.feed.php. This is where we generate the RSS page.
·
Wednesday, 10 September 2014 10:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nick
Thanks for that.

What would I need to look at to add this option to the import function?

Chris
·
Wednesday, 10 September 2014 10:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

I'm sorry I have missed your reply. I've re-checked the JFeeditem object and it seems like is fixed by Joomla library to only use these variables. Hence, we can't do anything to alter it.
·
Friday, 26 September 2014 12:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi
For what I read on the joomla API site JFeeditem is to create the feed items. Could just create your own class extending the JFeeditem?
·
Friday, 26 September 2014 12:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello David,

If you look at this file: ../libraries/joomla/document/feed/renderer/rss.php, Joomla will not render your additional property even if you extend the class. However, if you still want to add the additional property, you have to edit 2 files:

../components/com_easyblog/views/latest/view.feed.php
- In line 106, you can add your own property. eg. $item->unPublishdate;

../libraries/joomla/document/feed/renderer/rss.php
- Then, you have to add the checking here so Joomla will be able to read your new property.

Hope this helps.
·
Friday, 26 September 2014 15:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post