?
avatar dietze6
dietze6
8 May 2017

Hello since i posted this issue at a wrong place i am subitting it as new issue.
I'd love to order articles within a blog-view by unpublish date. Imagine a list of events or similar that should be displayed by their date: next event as first entry, second event as second entry and so on. But as you guys from event organisation know those events are not published in that way: maybe the third event is published as first because alle information is given early.
Here comes my idea: add th option to order by unpublish date: this allowes to create the articles in a chaotic order but show them by their unpubish date (the day after the event).

Steps to reproduce the issue

  • create category and a few articles within
  • create menu item (category blog)
  • order articles by date

Expected result

  • select option to order articles by unpublish date

Actual result

  • only options are publish_up, modified, created

System information (as much as possible)

  • Joomla 3.7.0 and before

Additional comments

maybe it is possible to implement this to root/components/com_content/category/blog.xml around line 270

<field
	name="order_date"
	type="list"
	description="JGLOBAL_ORDERING_DATE_DESC"
	label="JGLOBAL_ORDERING_DATE_LABEL"
>
	<option value="">JGLOBAL_USE_GLOBAL</option>
	<option value="created">JGLOBAL_CREATED</option>
	<option value="modified">JGLOBAL_MODIFIED</option>
	<option value="published">JPUBLISHED</option>
	<option value="unpublished">JUNPUBLISHED</option>
</field>

and then add in root/components/com_content/helpers/query.php around line 170 this

case 'unpublished' :
	$queryDate = ' CASE WHEN a.publish_down = ' . $db->quote($db->getNullDate()) . ' THEN a.created ELSE a.publish_down END ';
	break;

i think in J3.5 this used to work now it doesnt anymore

avatar dietze6 dietze6 - open - 8 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 May 2017
avatar brianteeman
brianteeman - comment - 8 May 2017

Please test #15887

avatar brianteeman brianteeman - change - 8 May 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-05-08 09:54:39
Closed_By brianteeman
avatar brianteeman brianteeman - close - 8 May 2017

Add a Comment

Login with GitHub to post a comment