Settings by defaults
It is possible to specify the default values of the plugin in the administration interface. The value of the setting can be overridden in shortcode
via the parameter in the „Identifier” column of the table below.
[download-from-files target="MANDATORY!"]
ID | Setup | Description |
---|---|---|
target="" |
Folder to display This setting can only be specified in shortcode . |
The path to the folder in relation to the main WordPress folder whose contents should be displayed. (Default: Yes) |
template="" |
Default template | The template to use if it is not set in shortcode . (Default: default) The plugin contains four built-in templates, three of which can be selected as defaults:
On the settings page, the selection box also offers the templates found in the |
folders="0|1" |
Show folders | When enabled, subfolders of the selected folder (and its subfolders) will also be displayed and can be downloaded by the visitor. (Default: Yes) |
empty_text="" |
„Folder is empty” text | Appears if there are no subfolders or files in the folder. (Default: This folder is empty.) |
accept="" |
Accepted types | A comma-separated list of file types that can be displayed among downloadable documents. (If there are other types in the folder, they simply won’t appear.) (Default: doc, docx, odt, pdf, xls, xlsx, ods, zip) |
disabled="" |
Hidden | File or folder names that do not appear in any way. (The name of the physical folder or file must be specified in a comma-separated list. The wp-admin and wp-includes folders will always be hidden.)(Default: not specified) |
sort_folders="" |
Folder order | You can set the order in which folders are sorted, where:
(Default: Set Order) |
sort_files="" |
File order | You can set the order in which files are sorted, where:
(Default: Set Order) |
sort_order="asc|desc" |
Sorting direction |
|
hide_direct_url="0|1" |
Hide links | If enabled, remove the legible link from the source code. (Default: Yes) |
rename="0|1" |
Rename file and folder | If enabled, renames the file or folder to include only English ABC letters and numbers as described. If a file with this name already exists, add a counter to the file name. (Default: Yes) |