?
Referenced as Pull Request for: # 10059
avatar sam-suresh
sam-suresh
13 Apr 2015

Steps to reproduce the issue

Archived articles menu year selection hardcoded.
To show from 2005-now

Expected result

Fetch archived articles years and show on dropdown.

Actual result

Showing all years from 2005-2015 (10 Years)

System information (as much as possible)

Joomla 3.4.1

Additional comments

avatar sam-sk sam-sk - open - 13 Apr 2015
avatar sam-suresh sam-suresh - change - 13 Apr 2015
Title
Articles archive view year selection harcoded from 2005-now. 
Archieved articles view year selection hardcoded from 2005-now.
avatar sam-sk sam-sk - change - 13 Apr 2015
Title
Articles archive view year selection harcoded from 2005-now.
Archieved articles view year selection hardcoded from 2005-now.
avatar zero-24 zero-24 - change - 13 Apr 2015
Labels Added: ?
Removed: ?
avatar zero-24 zero-24 - change - 13 Apr 2015
Labels Added: ?
Removed: ?
avatar brianteeman
brianteeman - comment - 13 Apr 2016
avatar brianteeman brianteeman - change - 13 Apr 2016
Status New Confirmed
avatar andrepereiradasilva
andrepereiradasilva - comment - 14 Apr 2016

i agree with this, the years shouldn't be hardcoded, should only appear the years from with there are articles in the database. Perhaps a form field generate with db values, similar to the position filed in the admin com_modules filter?

avatar brianteeman
brianteeman - comment - 14 Apr 2016

I was thinking that it should be dynamic based on the content
So if you have archived content from 1999 the year will start at 1999
but if you then delete that content and the oldest archived content is now
2002 the year will start at 2002

On 14 April 2016 at 11:47, andrepereiradasilva notifications@github.com
wrote:

i agree with this, the years shouldn't be hardcoded, should only appear
the years from with there are articles in the database. Perhaps a form
field generate with db values, similar to the position filed in the admin
com_modules filter?

-

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_modules/models/forms/filter_modules.xml#L33
-

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_modules/models/fields/modulesposition.php
-

https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_modules/helpers/modules.php#L98


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#6754 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar andrepereiradasilva
andrepereiradasilva - comment - 14 Apr 2016

yes, get the year of the oldest archived article and start from that year.
it would work also, and maybe be simpler.

avatar sam-suresh
sam-suresh - comment - 14 Apr 2016

When years displayed and no content, it is time wasting for users to search which year has archive and it is not relevant to show years without content.

It will be awesome if Joomla can fetch years based on archive availability.

avatar brianteeman
brianteeman - comment - 23 Apr 2016

Closed as we have a PR #10059 for testing


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6754.

avatar brianteeman brianteeman - change - 23 Apr 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-04-23 13:54:22
Closed_By brianteeman
avatar brianteeman brianteeman - close - 23 Apr 2016

Add a Comment

Login with GitHub to post a comment