?
avatar jjnxpct
jjnxpct
13 Feb 2018

Steps to reproduce the issue

  • Create a new articles category module showing articles from a specific category (filter - In my case 'news'.)
  • Sort options: Start date publication
  • Group options: Article grouping: 'Month and year'
  • Group options: Group direction: 'Descending'
  • Group options: Month and Year Display Format: 'F Y'

Expected result

I would like to see the grouping based on the publish date (publish_up)of the articles. This publish date is also shown on the site on the articles.

Actual result

In stead of the publish date the module uses create date. So articles created in januari, but published in februari, turn up under 'januari 2018'.

System information (as much as possible)

Joomla 3.8.5

Additional comments

I would be nice to have an extra parameter in the module at the grouping tab to be able to chose the date for grouping: create date or publish date.

I now duplicated the module and changed these lines in the module helper.php to get what we needed:

469 - $month_year = StringHelper::substr($item->publish_up, 0, 7);
481 - $month_year = $year = StringHelper::substr($item->publish_up, 0, 4);

avatar jjnxpct jjnxpct - open - 13 Feb 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Feb 2018
avatar brianteeman
brianteeman - comment - 13 Feb 2018

Can you not use the date filtering options for this?

avatar jjnxpct
jjnxpct - comment - 13 Feb 2018

I believe the date filtering is meant for selecting a specific period in which the article was created (or published). So maybe between jan 2017 and dec 2018. And this period can be based on created date or published date. But this has no effect on the sorting option.

The grouping is hardcoded in the helper.php ($item->created) so there is no parameter for this in the module. So adding this parameter to the module would be a nice addition?

avatar franz-wohlkoenig franz-wohlkoenig - change - 13 Feb 2018
Status New Discussion
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar SharkyKZ
SharkyKZ - comment - 11 Apr 2018

Test PR #20139 please.

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-04-11 08:14:35
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2018
Status Closed Discussion
avatar joomla-cms-bot joomla-cms-bot - change - 11 Apr 2018
Status Discussion Closed
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 11 Apr 2018
avatar joomla-cms-bot joomla-cms-bot - close - 11 Apr 2018
avatar joomla-cms-bot
joomla-cms-bot - comment - 11 Apr 2018
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 11 Apr 2018

closed as having Pull Request #20139

Add a Comment

Login with GitHub to post a comment