Archived articles menu year selection hardcoded.
To show from 2005-now
Fetch archived articles years and show on dropdown.
Showing all years from 2005-2015 (10 Years)
Joomla 3.4.1
Title |
|
Title |
|
Labels |
Added:
?
Removed: ? |
Labels |
Added:
?
Removed: ? |
Status | New | ⇒ | Confirmed |
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?
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?-
—
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/
yes, get the year of the oldest archived article and start from that year.
it would work also, and maybe be simpler.
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.
Closed as we have a PR #10059 for testing
Status | Confirmed | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-23 13:54:22 |
Closed_By | ⇒ | brianteeman |
Actually its hard coded to be this year minus 10
https://github.com/joomla/joomla-cms/blob/staging/components/com_content/views/archive/view.html.php#L114
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6754.