diff --git a/language/en-GB/en-GB.mod_articles_latest.ini b/language/en-GB/en-GB.mod_articles_latest.ini index c38b97e557044..ff90687a128d9 100644 --- a/language/en-GB/en-GB.mod_articles_latest.ini +++ b/language/en-GB/en-GB.mod_articles_latest.ini @@ -4,6 +4,8 @@ ; Note : All ini files need to be saved as UTF-8 MOD_ARTICLES_LATEST="Articles - Latest" +MOD_LATEST_NEWS_FIELD_AUTHOR_DESC="Select one or more authors." +MOD_LATEST_NEWS_FIELD_AUTHOR_LABEL="Created by Author(s)" MOD_LATEST_NEWS_FIELD_CATEGORY_DESC="Selects Articles from one or more Categories. If no selection will show all categories as default." MOD_LATEST_NEWS_FIELD_COUNT_DESC="The number of Articles to display (the default is 5)." MOD_LATEST_NEWS_FIELD_COUNT_LABEL="Count" @@ -15,6 +17,7 @@ MOD_LATEST_NEWS_FIELD_USER_DESC="Filter by author." MOD_LATEST_NEWS_FIELD_USER_LABEL="Authors" MOD_LATEST_NEWS_VALUE_ADDED_BY_ME="Added or modified by me" MOD_LATEST_NEWS_VALUE_ANYONE="Anyone" +MOD_LATEST_NEWS_VALUE_CREATED_BY="Created by" MOD_LATEST_NEWS_VALUE_NOTADDED_BY_ME="Not added or modified by me" MOD_LATEST_NEWS_VALUE_ONLY_SHOW_FEATURED="Only show Featured Articles" MOD_LATEST_NEWS_VALUE_RECENT_ADDED="Recently Added First" diff --git a/modules/mod_articles_latest/helper.php b/modules/mod_articles_latest/helper.php index ccb4ccf83e088..a1f81dfb82890 100644 --- a/modules/mod_articles_latest/helper.php +++ b/modules/mod_articles_latest/helper.php @@ -73,6 +73,10 @@ public static function getList(&$params) $model->setState('filter.author_id.include', false); break; + case 'created_by' : + $model->setState('filter.author_id', $params->get('author', array())); + break; + case '0' : break; diff --git a/modules/mod_articles_latest/mod_articles_latest.xml b/modules/mod_articles_latest/mod_articles_latest.xml index 4b1580ea9b9f2..5b12dd5bca2fb 100644 --- a/modules/mod_articles_latest/mod_articles_latest.xml +++ b/modules/mod_articles_latest/mod_articles_latest.xml @@ -79,7 +79,17 @@ + + +