Create some archived articles and make sure that they have different created dates and publishing dates
Publish the archived articles module
The module will display a list of months based on the created date
$query->select($query->month($db->quoteName('created')) . ' AS created_month')
->select('created, id, title')
->select($query->year($db->quoteName('created')) . ' AS created_year')
->from('#__content')
->where('state = 2 AND checked_out = 0')
->group('created_year DESC, created_month DESC');
But when you select the month it wont show any articles because that correctly uses the PUBLISHED date.
The same is true of the filters. They correctly use the PUBLISHED date
Perhaps but the problem right now is that the module will create links to
months that have no content and not create links to months that do have
content
On 3 Oct 2014 11:36, "Simon" notifications@github.com wrote:
The archived menu item actually allows the user to select created,
modified or published dates, mod_article_archives would also need to have
this option so that the module and the page could be matched up.It's not just a simple change in the above code from created to published.
—
Reply to this email directly or view it on GitHub
#4441 (comment).
@brianteeman I totally agree that the links are wrong, but your statement correctly use the *PUBLISHED* date
is wrong, it should correctly use the 'configured' field from the menu settings
And if there is no menu?
On 3 Oct 2014 13:33, "Simon" notifications@github.com wrote:
@brianteeman https://github.com/brianteeman I totally agree that the
links are wrong, but your statement correctly use the PUBLISHED date is
wrong, it should correctly use the 'configured' field from the menu
settings—
Reply to this email directly or view it on GitHub
#4441 (comment).
There always is because it defaults to Home menu item.
I am referring to the options that Simon mentions exist in the Archive menu
type
On 3 October 2014 18:39, sovainfo notifications@github.com wrote:
There always is because it defaults to Home menu item.
—
Reply to this email directly or view it on GitHub
#4441 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
@brianteeman I plan to setup a quick test site for this, but not achieved that yet. My point was that the archive module and archive view should share the same settings. Currently the module is hardcoded, but the archive view uses config settings either from a menu item, or from the com_content component options.
I understand you. Currently the hardcoding in the module is broken.
On 8 October 2014 13:40, Simon notifications@github.com wrote:
@brianteeman https://github.com/brianteeman I plan to setup a quick
test site for this, but not achieved that yet. My point was that the
archive module and archive view should share the same settings. Currently
the module is hardcoded, but the archive view uses config settings either
from a menu item, or from the com_content component options.—
Reply to this email directly or view it on GitHub
#4441 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
Labels |
Added:
?
|
Proposed fix in: #4810
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4441.
Status | New | ⇒ | Closed |
Rel_Number | ⇒ | 4810 | |
Relation Type | ⇒ | Related to |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-17 20:56:49 |
Labels |
Added:
?
|
The archived menu item actually allows the user to select created, modified or published dates, mod_article_archives would also need to have this option so that the module and the page could be matched up.
It's not just a simple change in the above code from
created
topublished
.