PetterSandvik VIP
Total posts: 110
18 Aug 2018 17:11

Hello, I got some rare problems with the records module. I got a few at frontpage, a newspaper. One is called "Toppsaker", where i want to show only featured, AND added the last 24 days. I have configured it to show "Most recent first", and "Only Featured", also "Added last N days" is set to 24. But it shows the oldest records that are featured. The next module, "Siste nytt", shuld show last news, but not the featured content. So its configurated with "Most recent first", and "Excluding featured", and "Added last N days" is set to 60. This module does show featured content, like the above. If i set "What to show" paramter to "Added for the last N days", I get the last, but then I always get the four articles that are showed in "Toppsaker" at top.

Last Modified: 21 Aug 2018


PetterSandvik VIP
Total posts: 110
18 Aug 2018 22:41

I can add that I have used the templates from Azmul. I think it worked like expected late in 2017. It was not changed at the time I started using Azmuls templates.


Sergey
Total posts: 13,748
19 Aug 2018 07:27

There is no excluding featured oщзешщтyou can sort them first or sort through all records. It means that in send module if there are featured articles for the last 60 days you show, it will show those articles too.


pepperstreet VIP
Total posts: 3,837
19 Aug 2018 16:33

Sergey There is no excluding featured...

What about this option?

cob_module_records_whattoshow_exclude_featured


PetterSandvik VIP
Total posts: 110
20 Aug 2018 14:46

I know this option. But it has defects as I can see. If I select it, the last records I made featured is NOT showed. But, all records that in adminpanel have no featured sign, but have been featured earlier (and removed featuring from adminpanel) is showed. I can remove them, by opening one and one record at frontend, select to feature, and unfeature afterwards. Then they are removed.


PetterSandvik VIP
Total posts: 110
20 Aug 2018 14:50

Additionally, I have one module where I want to show records that have few hits, and one with most reads. I cant get that either to work as I want. If I select to show with last hits, and most hits, it gives me the same results in both module?


Sergey
Total posts: 13,748
21 Aug 2018 06:29

Fixed. Not ot wait upload you can change line 813 in components/com_cobalt/models/records.php from

$query->where('r.featured = 0');

to

$query->where('r.featured = 0 OR (r.featured = 1 AND r.ftime < NOW())');

PetterSandvik VIP
Total posts: 110
21 Aug 2018 21:12

Thanks, it was on line 830, not 813 here

Powered by Cobalt