Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[New Feature] Implementing filtering admin modules per admin language…
…s (including custom menu modules) (#17215) * Implementing multilingual custom backend menus * Implementing multilingual custom backend menus * Alignment * Correcting grammar and alpha order * Improving Warning. Thanks @izharaazmi * Modifyimg patch to allow language filtering per module when modules Option is set such. * uppercase * module lang field exchange * fix xml cs ;) * Update adminlanguage.php since version * Update adminlanguage.php
- Loading branch information
1 parent
fffdce9
commit 1bcfb4a
Showing
16 changed files
with
426 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
109 changes: 109 additions & 0 deletions
109
administrator/components/com_modules/models/forms/filter_modulesadmin.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<form> | ||
<fieldset addfieldpath="/administrator/components/com_modules/models/fields" /> | ||
|
||
<field | ||
name="client_id" | ||
type="list" | ||
label="" | ||
filtermode="selector" | ||
layout="default" | ||
onchange="jQuery('#filter_position, #filter_module, #filter_language').val('');this.form.submit();" | ||
> | ||
<option value="0">JSITE</option> | ||
<option value="1">JADMINISTRATOR</option> | ||
</field> | ||
<fields name="filter"> | ||
<field | ||
name="search" | ||
type="text" | ||
label="COM_MODULES_MODULES_FILTER_SEARCH_LABEL" | ||
description="COM_MODULES_MODULES_FILTER_SEARCH_DESC" | ||
hint="JSEARCH_FILTER" | ||
noresults="COM_MODULES_MSG_MANAGE_NO_MODULES" | ||
/> | ||
<field | ||
name="state" | ||
type="status" | ||
label="JSTATUS" | ||
filter="*,-2,0,1" | ||
onchange="this.form.submit();" | ||
> | ||
<option value="">JOPTION_SELECT_PUBLISHED</option> | ||
</field> | ||
<field | ||
name="position" | ||
type="modulesposition" | ||
label="COM_MODULES_FIELD_POSITION_LABEL" | ||
onchange="this.form.submit();" | ||
> | ||
<option value="">COM_MODULES_OPTION_SELECT_POSITION</option> | ||
</field> | ||
<field | ||
name="module" | ||
type="ModulesModule" | ||
label="COM_MODULES_OPTION_SELECT_MODULE" | ||
onchange="this.form.submit();" | ||
> | ||
<option value="">COM_MODULES_OPTION_SELECT_MODULE</option> | ||
</field> | ||
<field | ||
name="access" | ||
type="accesslevel" | ||
label="JOPTION_FILTER_ACCESS" | ||
description="JOPTION_FILTER_ACCESS_DESC" | ||
onchange="this.form.submit();" | ||
> | ||
<option value="">JOPTION_SELECT_ACCESS</option> | ||
</field> | ||
<field | ||
name="language" | ||
type="language" | ||
label="JOPTION_FILTER_LANGUAGE" | ||
description="JOPTION_FILTER_LANGUAGE_DESC" | ||
client="administrator" | ||
onchange="this.form.submit();" | ||
> | ||
<option value="">JOPTION_SELECT_LANGUAGE</option> | ||
<option value="*">JALL</option> | ||
</field> | ||
</fields> | ||
<fields name="list"> | ||
<field | ||
name="fullordering" | ||
type="list" | ||
label="JGLOBAL_SORT_BY" | ||
description="JGLOBAL_SORT_BY" | ||
statuses="*,0,1,-2" | ||
onchange="this.form.submit();" | ||
default="a.position ASC" | ||
> | ||
<option value="">JGLOBAL_SORT_BY</option> | ||
<option value="a.ordering ASC">JGRID_HEADING_ORDERING_ASC</option> | ||
<option value="a.ordering DESC">JGRID_HEADING_ORDERING_DESC</option> | ||
<option value="a.published ASC">JSTATUS_ASC</option> | ||
<option value="a.published DESC">JSTATUS_DESC</option> | ||
<option value="a.title ASC">JGLOBAL_TITLE_ASC</option> | ||
<option value="a.title DESC">JGLOBAL_TITLE_DESC</option> | ||
<option value="a.position ASC">COM_MODULES_HEADING_POSITION_ASC</option> | ||
<option value="a.position DESC">COM_MODULES_HEADING_POSITION_DESC</option> | ||
<option value="name ASC">COM_MODULES_HEADING_MODULE_ASC</option> | ||
<option value="name DESC">COM_MODULES_HEADING_MODULE_DESC</option> | ||
<option value="ag.title ASC">JGRID_HEADING_ACCESS_ASC</option> | ||
<option value="ag.title DESC">JGRID_HEADING_ACCESS_DESC</option> | ||
<option value="a.language ASC">JGRID_HEADING_LANGUAGE_ASC</option> | ||
<option value="a.language DESC">JGRID_HEADING_LANGUAGE_DESC</option> | ||
<option value="a.id ASC">JGRID_HEADING_ID_ASC</option> | ||
<option value="a.id DESC">JGRID_HEADING_ID_DESC</option> | ||
</field> | ||
<field | ||
name="limit" | ||
type="limitbox" | ||
label="COM_MODULES_LIST_LIMIT" | ||
description="JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC" | ||
class="input-mini" | ||
default="25" | ||
onchange="this.form.submit();" | ||
/> | ||
</fields> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.