?
Related to # 4810
Referenced as Related to: # 4810
avatar brianteeman
brianteeman
3 Oct 2014

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

avatar brianteeman brianteeman - open - 3 Oct 2014
avatar stiplady
stiplady - comment - 3 Oct 2014

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.

avatar brianteeman
brianteeman - comment - 3 Oct 2014

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).

avatar stiplady
stiplady - comment - 3 Oct 2014

@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

avatar brianteeman
brianteeman - comment - 3 Oct 2014

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).

avatar sovainfo
sovainfo - comment - 3 Oct 2014

There always is because it defaults to Home menu item.

avatar brianteeman
brianteeman - comment - 3 Oct 2014

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/

avatar stiplady
stiplady - comment - 8 Oct 2014

@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.

avatar brianteeman
brianteeman - comment - 8 Oct 2014

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/

avatar nicksavov nicksavov - change - 16 Oct 2014
Labels Added: ?
avatar jatitoam
jatitoam - comment - 17 Oct 2014

Proposed fix in: #4810

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

avatar zero-24 zero-24 - close - 17 Oct 2014
avatar zero-24 zero-24 - close - 17 Oct 2014
avatar brianteeman brianteeman - change - 17 Oct 2014
Status New Closed
Rel_Number 4810
Relation Type Related to
avatar brianteeman brianteeman - close - 17 Oct 2014
avatar brianteeman brianteeman - change - 17 Oct 2014
Closed_Date 0000-00-00 00:00:00 2014-10-17 20:56:49
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment