Keyword

Feed Order Suggestion

  • Dan Walker
  • Dan Walker's Avatar Topic Author
  • Offline
  • New Member
More
8 months 2 weeks ago - 8 months 2 weeks ago #171076 by Dan Walker
Dan Walker created the topic: Feed Order Suggestion
I am using RSS Feed Reader to output images from my own category blog RSS feed to the front page of the website. I have ordered the articles in the category blog by category ordering and this is reflected in the RSS feed. However, SRFR sorts all feed items by date and so negates the desired ordering. I have figured out how to stop the date sort in the file helper.php, but this hack would be overridden by updates.

My suggestion is for you to create a toggle in the next version of SRFR to either sort by date (default) or keep RSS feed order. I think there would be others who want to keep the category blog sort order in the SRFR module.

Thanks.
Last edit: 8 months 2 weeks ago by Dan Walker.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
8 months 1 week ago #171103 by Fotis
Fotis replied the topic: Feed Order Suggestion
SRFR is not really meant to be used this way. All RSS/Atom feeds are ordered by date.

If you need content flexibility, you should probably look at K2. It's years ahead of Joomla articles and has all the right modules to fetch content in any way imaginable.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #172993 by Michel Pilato
Michel Pilato replied the topic: Feed Order Suggestion
I would like to remove the sort by date and keep the order of RSS feeds.
@TOPIC AUTHOR
In the header.php at what level did you intervene?

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago - 1 month 2 weeks ago #172996 by Michel Pilato
Michel Pilato replied the topic: Feed Order Suggestion
Hello,
I would like to reverse my list to have the element first
"Stage calligraphy gesture in Lyon from 14 to 14 09 2019."
I would like to override the file helper.php.I do not know where to intervene. Can you advise me.
Excuse me for the translation I am French
Thank you
Attachments:
Last edit: 1 month 2 weeks ago by Michel Pilato.

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #173016 by Fotis
Fotis replied the topic: Feed Order Suggestion
You could just change the order in the module's template override.

Assuming you use the compact layout, copy /modules/mod_jw_srfr/tmpl/compact (the folder) into /templates/YOUR_TEMPLATE/html/mod_jw_srfr/ (create this folder if it doesn't exist) and then edit the file /templates/YOUR_TEMPLATE/html/mod_jw_srfr/compact/default.php and at about line 25 (as shown here github.com/joomlaworks/simple-rss-feed-reader/blob/master/tmpl/compact/default.php#L25 ) change this:
<?php foreach($output as $key=>$feed): ?>

to this:
<?php rsort($output); foreach($output as $key=>$feed): ?>

This is a quick change to swap the order, so I may have missed something. Let me know if it works.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #173021 by Michel Pilato
Michel Pilato replied the topic: Feed Order Suggestion
Hello,
Having no answer I put
<? php foreach (array_reverse ($ output) as $ key => $ feed):?>
It works but I will try yours.
Your code works too but with errors (mine too)
michel-pilato.fr/ (with my code)

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 2 weeks ago #173022 by Fotis
Fotis replied the topic: Feed Order Suggestion
I don't see any errors in your site. What did you see exactly?

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #173028 by Michel Pilato
Michel Pilato replied the topic: Feed Order Suggestion
Hello,
I give you these details since you asked me. For me these codes go very well
With the thread of news of joomla one has the possibility in the backend to invert the elements and it is well displayed in the order 1-2-3-4-5-6-7-8-9-10
michel-pilato.fr/index.php/actualites/stages
With your code
<? php rsort ($ output); foreach ($ output as $ key => $ feed):?>
Element 4 of the news feed is last.

With my code
   <? php foreach (array_reverse ($ output) as $ key => $ feed):?>
Elements 4 and 5 are reversed.
michel-pilato.fr/index.php

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
1 month 1 week ago #173041 by Fotis
Fotis replied the topic: Feed Order Suggestion
Look, it's probably a good idea to have an ordering option for feeds retrieved baked into the module settings (order by date asc/desc, alphabetical/reverse alphabetical, random).

Noted for the next release.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum