I have these css files in the folder foldername/subfoldername :
I created a new field in my custom module backend as below :
<field name="fieldname" type="filelist" default="default.min" label="Field label" description="Field Desc" directory="foldername/subfoldername" filter="min.css" exclude="" stripext="true" hide_none="true" hide_default="true" />
The dropdown shows *.min.css files only :
The dropdown showed all files :
Joomla 4.0.0-alpha12
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-01-17 15:08:07 |
Closed_By | ⇒ | Quy |
@webchun Be sure to test with the nightly builds. https://developer.joomla.org/nightly-builds.html
In 4.0 the attribute for filtering files has been renamed to
fileFilter
to resolve conflict withfilter
attribute used for filtering form input.
Ok it's working good with fileFilter
In 4.0 the attribute for filtering files has been renamed to
fileFilter
to resolve conflict withfilter
attribute used for filtering form input.Related documentation: