Keyword

Feed Order Suggestion

  • Dan Walker
  • Dan Walker's Avatar Topic Author
  • Offline
  • New Member
More
5 years 2 months ago - 5 years 2 months ago #171076 by Dan Walker
Feed Order Suggestion was created by Dan Walker
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: 5 years 2 months ago by Dan Walker.

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

More
5 years 2 months ago #171103 by JoomlaWorks
Replied by JoomlaWorks on 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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 7 months ago #172993 by Michel Pilato
Replied by Michel Pilato on 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
4 years 7 months ago - 4 years 7 months ago #172996 by Michel Pilato
Replied by Michel Pilato on 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: 4 years 7 months ago by Michel Pilato.

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

More
4 years 7 months ago #173016 by JoomlaWorks
Replied by JoomlaWorks on 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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 7 months ago #173021 by Michel Pilato
Replied by Michel Pilato on 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.

More
4 years 7 months ago #173022 by JoomlaWorks
Replied by JoomlaWorks on topic Feed Order Suggestion
I don't see any errors in your site. What did you see exactly?

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 7 months ago #173028 by Michel Pilato
Replied by Michel Pilato on 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.

More
4 years 7 months ago #173041 by JoomlaWorks
Replied by JoomlaWorks on 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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
4 years 5 months ago #173582 by Dusty
Replied by Dusty on topic Feed Order Suggestion
Hi Fotis,

Any progress on adding the ordering options to SRFR? Maybe a beta?

Thanks,
Dusty

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


Powered by Kunena Forum