Error 500 after installing Related Articles with PHP 8
- Posted by Karsten (21) Offline
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 11 months ago - 1 year 11 months ago #7
by Karsten
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
Last edit: 1 year 11 months ago by Karsten.
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5260) 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 year 11 months ago - 1 year 11 months ago #8
by TemplatePlazza
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:
- Article A -> relevance score : 10, created at 2015
- Article B -> relevance score : 6, created at 2020
- Article C -> relevance score : 5, created at 2022
- Article D -> relevance score : 4, created at 2021
- Article E -> relevance score : 3, created at 2023
- Article A
- Article B
- Article C
- Article E
- Article C
- Article D
Last edit: 1 year 11 months ago by TemplatePlazza.
Please Log in or Create an account to join the conversation.
- Posted by Karsten (21) Offline
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 11 months ago - 1 year 11 months ago #9
by Karsten
What I need is the module working like it does currently on www.seo-suedwest.de. Thx a lot.
Last edit: 1 year 11 months ago by Karsten.
Please Log in or Create an account to join the conversation.
- Posted by Karsten (21) Offline
- Posted by TemplatePlazza (5260) Offline
- Posted by TemplatePlazza (5260) 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 codeadd this code :
Please let me know if the results meet your expectations
1 year 10 months ago #12
by TemplatePlazza
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);
$orderby = "a.created DESC";
$query->order($orderby);
Please let me know if the results meet your expectations
Please Log in or Create an account to join the conversation.