Last active
June 26, 2018 14:37
-
-
Save tonypartridge/5312ad2c240fda391ca8a50f84e0a7e8 to your computer and use it in GitHub Desktop.
Markup for pre-setting filters in Joomla! Admin menu items, this one is for com_content
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
<?xml version="1.0" encoding="utf-8"?> | |
<metadata> | |
<layout title="COM_CONTENT_ARTICLES_VIEW_DEFAULT_TITLE"> | |
<message> | |
<![CDATA[COM_CONTENT_ARTICLES_VIEW_DEFAULT_DESC]]> | |
</message> | |
</layout> | |
<fields name="request"> | |
<fieldset name="request" | |
> | |
<field | |
name="filter_category_id" | |
type="category" | |
label="JGLOBAL_CHOOSE_CATEGORY_LABEL" | |
description="JGLOBAL_CHOOSE_CATEGORY_DESC" | |
multiple="true" | |
class="multipleCategories" | |
extension="com_content" | |
published="0,1,2" | |
/> | |
<field | |
name="filter_tag" | |
type="tag" | |
label="JTAG" | |
description="JTAG_FIELD_SELECT_DESC" | |
multiple="true" | |
/> | |
<field | |
name="filter_search" | |
type="text" | |
label="COM_CONTENT_FILTER_SEARCH_LABEL" | |
description="COM_CONTENT_FILTER_SEARCH_DESC" | |
hint="JSEARCH_FILTER" | |
/> | |
<field | |
name="filter_published" | |
type="status" | |
label="COM_CONTENT_FILTER_PUBLISHED" | |
description="COM_CONTENT_FILTER_PUBLISHED_DESC" | |
> | |
<option value="">JOPTION_SELECT_PUBLISHED</option> | |
</field> | |
<field | |
name="filter_access" | |
type="accesslevel" | |
label="JOPTION_FILTER_ACCESS" | |
description="JOPTION_FILTER_ACCESS_DESC" | |
multiple="true" | |
class="multipleAccessLevels" | |
/> | |
<field | |
name="filter_author_id" | |
type="author" | |
label="COM_CONTENT_FILTER_AUTHOR" | |
description="COM_CONTENT_FILTER_AUTHOR_DESC" | |
multiple="true" | |
class="multipleAuthors" | |
> | |
<option value="0">JNONE</option> | |
</field> | |
<field | |
name="filter_language" | |
type="contentlanguage" | |
label="JOPTION_FILTER_LANGUAGE" | |
description="JOPTION_FILTER_LANGUAGE_DESC" | |
> | |
<option value="">JOPTION_SELECT_LANGUAGE</option> | |
<option value="*">JALL</option> | |
</field> | |
<field | |
name="filter_level" | |
type="integer" | |
label="JOPTION_FILTER_LEVEL" | |
description="JOPTION_FILTER_LEVEL_DESC" | |
first="1" | |
last="10" | |
step="1" | |
languages="*" | |
> | |
<option value="">JOPTION_SELECT_MAX_LEVELS</option> | |
</field> | |
</fieldset> | |
</fields> | |
</metadata> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment