Error 500 after installing Related Articles with PHP 8

Hi, regarding the order of the displayed related items: The time range does not help here. Sometimes there are older articles which still are relevant. Here I want to avoid that even older articles are displayed. Example: There are two articles, one from 2020 and one from 2018. I only want the article from 2018 to appear. For another article there are two articles, one from 2018 and onde from 2017. Also here I only want the newer article to appear. One time range for all articles does not help here.

What I need is a sorting function like it was available in previous versions of the module if it is not possible to configure it elsewhere in Joomla. 

For the thumbnail folder: We have uninstalled the plugin, created the folder and re-installed the plugin. But the folder is still empty..No clue what might be the reason for that.

Regards

 
1 year 1 month ago - 1 year 1 month ago #7 by Karsten
Last edit: 1 year 1 month ago by Karsten.

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

  • Posted by TemplatePlazza (5177) Offline
Hi Karsten,
If there is case, let say you set to display 3 related articles in the module, then there 5 related articles found with order of relevance like this:
  1. Article A -> relevance score : 10, created at 2015
  2. Article B -> relevance score : 6, created at 2020
  3. Article C -> relevance score : 5, created at 2022
  4. Article D -> relevance score : 4, created at 2021
  5. Article E -> relevance score : 3, created at 2023
In current condition, the module will display these articles by its relevance score just like this order :
  1. Article A
  2. Article B
  3. Article C
By implementing the Order by then it will display these articles in order :
  1. Article E
  2. Article C
  3. Article D
So the articles maybe less relevant, but it will be displayed because its newer. Can you tell me is that something you'd expect?

 
1 year 1 month ago - 1 year 1 month ago #8 by TemplatePlazza
Last edit: 1 year 1 month ago by TemplatePlazza.

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

Yes, basically I would expect that the most recent articles according to the topic appear. This was the behaviour of the older plugin version where I could set the order, right? 
What I need is the module working like it does currently on www.seo-suedwest.de. Thx a lot.
1 year 1 month ago - 1 year 1 month ago #9 by Karsten
Last edit: 1 year 1 month ago by Karsten.

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

Hi, do you have any update for me? Regards 
1 year 1 month ago #10 by Karsten

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

  • Posted by TemplatePlazza (5177) Offline
Ok I will update the module with that option very soon
1 year 1 month ago #11 by TemplatePlazza

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

  • Posted by TemplatePlazza (5177) Offline
Hi karsten,
I don't have use case sample to test the function, can you try open the file modules/mod_relateditems_xtd/Helper/RelatedItemsXtdHelperMetaKey.php then at line 146, before this code
$db->setQuery($query, 0, $maximum);
add this code :
$orderby = "a.created DESC";
$query->order($orderby);

Please let me know if the results meet your expectations
1 year 1 month ago #12 by TemplatePlazza

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

Powered by Kunena Forum