Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Date Modified on Articles Manager (new feature) #15825

Merged
merged 1 commit into from May 22, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion administrator/components/com_content/models/articles.php
Expand Up @@ -40,6 +40,7 @@ public function __construct($config = array())
'state', 'a.state',
'access', 'a.access', 'access_level',
'created', 'a.created',
'modified', 'a.modified',
'created_by', 'a.created_by',
'created_by_alias', 'a.created_by_alias',
'ordering', 'a.ordering',
Expand Down Expand Up @@ -174,7 +175,7 @@ protected function getListQuery()
$this->getState(
'list.select',
'a.id, a.title, a.alias, a.checked_out, a.checked_out_time, a.catid' .
', a.state, a.access, a.created, a.created_by, a.created_by_alias, a.ordering, a.featured, a.language, a.hits' .
', a.state, a.access, a.created, a.created_by, a.created_by_alias, a.modified, a.ordering, a.featured, a.language, a.hits' .
', a.publish_up, a.publish_down'
)
);
Expand Down
Expand Up @@ -110,6 +110,8 @@
<option value="language DESC">JGRID_HEADING_LANGUAGE_DESC</option>
<option value="a.created ASC">JDATE_ASC</option>
<option value="a.created DESC">JDATE_DESC</option>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix tab alignment.

<option value="a.modified ASC">COM_CONTENT_MODIFIED_ASC</option>
<option value="a.modified DESC">COM_CONTENT_MODIFIED_DESC</option>
<option value="a.publish_up ASC">COM_CONTENT_PUBLISH_UP_ASC</option>
<option value="a.publish_up DESC">COM_CONTENT_PUBLISH_UP_DESC</option>
<option value="a.publish_down ASC">COM_CONTENT_PUBLISH_DOWN_ASC</option>
Expand Down
Expand Up @@ -31,6 +31,10 @@
{
$orderingColumn = 'publish_down';
}
elseif (strpos($listOrder, 'modified') !== false)
{
$orderingColumn = 'modified';
}
else
{
$orderingColumn = 'created';
Expand Down
3 changes: 3 additions & 0 deletions administrator/language/en-GB/en-GB.com_content.ini
Expand Up @@ -122,6 +122,7 @@ COM_CONTENT_FLOAT_LABEL="Image Float"
COM_CONTENT_FLOAT_INTRO_LABEL="Intro Image Float"
COM_CONTENT_HEADING_ASSOCIATION="Association"
COM_CONTENT_HEADING_DATE_CREATED="Date Created"
COM_CONTENT_HEADING_DATE_MODIFIED="Date Modified"
COM_CONTENT_HEADING_DATE_PUBLISH_UP="Start Publishing"
COM_CONTENT_HEADING_DATE_PUBLISH_DOWN="Finish Publishing"
COM_CONTENT_ID_LABEL="ID"
Expand Down Expand Up @@ -161,6 +162,8 @@ COM_CONTENT_PAGEBREAK_DOC_TITLE="Page Break"
COM_CONTENT_PAGEBREAK_INSERT_BUTTON="Insert Page Break"
COM_CONTENT_PAGEBREAK_TITLE="Page Title:"
COM_CONTENT_PAGEBREAK_TOC="Table of Contents Alias:"
COM_CONTENT_MODIFIED_ASC="Date Modified ascending"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alphabetize/move strings.

COM_CONTENT_MODIFIED_DESC="Date Modified descending"
COM_CONTENT_PUBLISH_DOWN_ASC="Finish Publishing ascending"
COM_CONTENT_PUBLISH_DOWN_DESC="Finish Publishing descending"
COM_CONTENT_PUBLISH_UP_ASC="Start Publishing ascending"
Expand Down