File
File Field Plugin for FLEXIcontent
:::info Source
This page is generated from plugins/flexicontent_fields/file/file.xml and the official FLEXIcontent 5.x language files.
:::
Editing
Editing
Values
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Use field in a groupuse_ingroup | Enable to allow field to be part of field group, that is created via 'Field Group' field. NOTE: You should then select this field in ONLY ONE field group | multilist | 0 = No1 = Yes | 0 (No) |
Number of values
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show Onshowon | Shown On Conditions. Use Joomla Format 'fieldname:value' e.g album_type:2 NOTE: DO not set this field to required. Also DISABLE prettyCheckable / Select2 JS in any referenced fields of type select*, checkbox*, radio* | text | — | — |
Requiredrequired | Choose yes if the field must be filled | radio | 0 = No1 = Yes | 0 (No) |
Allow multiple valuesallow_multiple | Allow more than 1 value for this field | multilist | 0 = No1 = Yes | 1 (Yes) |
max # valuesmax_values | The max number of values you wish to record | text | — | 0 |
Values per rowfields_box_placing | Save space by allowing multiple values to show per row | radio | 0 = 11 = Multiple | 1 (Multiple) |
Buttons
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Add positionadd_position | Select to add value inline (show add button at every value) or append them to the bottom of the value list | multilist | 0 = Append to bottom1 = Inline append2 = Inline prepend3 = Inline both | 3 (Inline both) |
File Upload / Selectfile_btns_position | Choose how and where to display the file Select / Upload buttons | hidden | — | 0 |
Remote Storage
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Type of storageestorage_mode | Select the type of remote storage | multilist | 0 = NoFTP = FTPOTHER = Other | 0 (No) |
Other
Currently only FTP is supported, TO-DO more external storage options ...
Remote Storage (FTP)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Hostnameefs_ftp_host | — | text | — | — |
Portefs_ftp_port | — | text | — | — |
Userefs_ftp_user | — | text | — | — |
Passwordefs_ftp_pass | — | text | — | — |
Folderefs_ftp_path | — | text | — | — |
URLefs_www_url | — | text | — | https://some_external_servername.com/somefolder/ |
Form field
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display labeldisplay_label_form | Display or hide label of this field | radio | 0 = No1 = Floated left2 = Cleared | 1 (Floated left) |
Labellabel_form | Enter a label to use for item form that is different than field label for viewing | text | — | — |
No access messageno_acc_msg_form | Leave this blank to use system's default no access message, or enter a custom message for this field | text | — | — |
Card width (px)form_card_width | Width of the file card in the item edit form, in pixels | text | — | 400 |
Layout
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Fields layoutformlayout | Please note: - do not modify default layouts, - custom layouts may need updating in future to respect new configuration and work properly - to create new copy (same folder): plugins/flexicontent_fields/FIELD_TYPE/tmpl/field_*.php as field_mytemplate.php - or to folder: /templates/SOME_NAME/html/flexicontent_fields/FIELD_TYPE/ and then modify | fcfilelist | — | — |
Header infoform_info_header | — | radio | 1 = Server storage sub-path2 = Original filename3 = Both | 3 (Both) |
File previewform_file_preview | You can enable file preview box, e.g. it will show image thumbnail if selected file is an image | multilist | 0 = Disable1 = Enable | 0 (Disable) |
Edit properties
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enableinputmode | Select to allow editing file properties elements | multilist | 1 = No0 = Yes | 1 (No) |
Titleiform_title | Can be displayed instead of filename | radio | 0 = No1 = Yes | 1 (Yes) |
Descriptioniform_desc | This can be used by some fields, e.g. it can be optionally displayed (inline, tooltip, etc) by the file field | radio | 0 = No1 = Yes | 1 (Yes) |
Languageiform_lang | You may want to set file language, e.g. if file is a document in specific language, or media that contains audio or text in specific language | radio | 0 = No1 = Yes | 0 (No) |
Accessiform_access | You may want to set the access level that users will need to have, in order to download or view the file | radio | 0 = No1 = Yes | 0 (No) |
Target directoryiform_dir | If you select secure, the users will never see the real path of the file and will only be allowed indirect access to the file. This option is suitable for e.g. - document files * - high resolution copyrighted images * * attach to content via FILE field ** attach to content via FILE field or image/gallery field NOTE: 1. If you select media folder, then direct access will be allowed thus you will be able to play media files via media players embedded in visitor's browser. 2. Image files in the secure folder can be either privileged accessed via file field or viewable by (optionally watermarked) thumbnails created by the image/gallery field and you will still keep the secure download feature. | radio | 0 = No1 = Yes | 0 (No) |
Download stampingiform_stamp | Enable / disable stamping during file download (e.g. for PDFs) | radio | 0 = No1 = Yes | 0 (No) |
Defaults
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Titleiform_title_default | Default value | text | — | — |
Descriptioniform_desc_default | Default value | text | — | — |
Languageiform_lang_default | Default value | fclanguage | — | * |
Accessiform_access_default | Default value | accesslevel | — | 1 |
Target directoryiform_dir_default | Default value | radio | 0 = Media1 = Secure | 1 (Secure) |
Download stampingiform_stamp_default | Default value | radio | 0 = No1 = Yes | 1 (Yes) |
Custom file property 1 (HTML)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enablecustom1_enable | Enable this property: it is shown below the description in the file add/edit forms and displayed on the site when it is not empty | multilist | 0 = No1 = Yes | 0 (No) |
Labelcustom1_label | Label text. You may enter a language string key (it will be translated if it exists) | text | — | — |
Display labelcustom1_label_show | Show the label in the forms and on the site | radio | 0 = No1 = Yes | 1 (Yes) |
Defaultcustom1_default | Default value (HTML allowed). Its usage is controlled by the setting below | textarea | — | — |
Input height (rows)custom1_rows | Height of the text area in the forms, in rows (1 - 30) | number | — | 2 |
Usage of defaultcustom1_default_use | Select when these default property value will be used | list | 0 = Load when editing new items, (requires saving)1 = Load when editing all items, (requires saving)2 = The above & also display it instead of empty | 0 (Load when editing new items, (requires saving)) |
Custom file property 2 (HTML)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enablecustom2_enable | Enable this property: it is shown below the description in the file add/edit forms and displayed on the site when it is not empty | multilist | 0 = No1 = Yes | 0 (No) |
Labelcustom2_label | Label text. You may enter a language string key (it will be translated if it exists) | text | — | — |
Display labelcustom2_label_show | Show the label in the forms and on the site | radio | 0 = No1 = Yes | 1 (Yes) |
Defaultcustom2_default | Default value (HTML allowed). Its usage is controlled by the setting below | textarea | — | — |
Input height (rows)custom2_rows | Height of the text area in the forms, in rows (1 - 30) | number | — | 2 |
Usage of defaultcustom2_default_use | Select when these default property value will be used | list | 0 = Load when editing new items, (requires saving)1 = Load when editing all items, (requires saving)2 = The above & also display it instead of empty | 0 (Load when editing new items, (requires saving)) |
My Files
Display a multi-upload manager, along with file-selection of files uploaded by current user, (privileged users may see all files)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enableuse_myfiles | Enable to allow selecting an existing file that was previously uploaded | multilist | 0 = Inline uploads, No My files reuse modal1 = Inline uploads + My Files reuse modal (with: Secure Uploads + URL links)2 = Inline uploads + My Files reuse modal (with: Secure Uploads + URL links + Joomla Media manager)3 = Inline uploads + My Files reuse modal (with: URL links + Joomla Media manager)4 = Joomla Media manager5 = Inline uploads + My Files reuse modal (with: Secure Uploads) | 1 (Inline uploads + My Files reuse modal (with: Secure Uploads + URL links)) |
Joomla mediajmedia_filetypes | Select file types what will be allowed and selectable by the editors | fccheckbox | — | — |
About top folder (J4+ only) - You must add this folder in PLUGIN: 'FileSystem - Local', e.g. add folder downloads. - For quantum file manager. This is the scope name NOTE: please add an extra custom-named scope for the folder images !! e.g. 'imgs' DO NOT change folder name 'images', 'imgs' will be the name of the custom scope
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Top folderjmedia_topdir | For native media file manager, this is the folder inside Joomla ROOT (that you added in Filestorage plugin, or for Quantum file manager this will be the custom scope name images | text | — | — |
Sub folder pathjmedia_subpath | Select sub-folder to be opened e.g. content/news -> JPATH_ROOT/images/content/news | text | — | — |
Uploader
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Auto assignautoassign | When new files are uploaded they will be assigned to the current field automatically. This way user will not have to search and click the new file(s) | radio | 0 = No1 = Select and assign2 = Select only | 1 (Select and assign) |
Target directorytarget_dir | If you select secure, the users will never see the real path of the file and will only be allowed indirect access to the file. This option is suitable for e.g. - document files * - high resolution copyrighted images * * attach to content via FILE field ** attach to content via FILE field or image/gallery field NOTE: 1. If you select media folder, then direct access will be allowed thus you will be able to play media files via media players embedded in visitor's browser. 2. Image files in the secure folder can be either privileged accessed via file field or viewable by (optionally watermarked) thumbnails created by the image/gallery field and you will still keep the secure download feature. | radio | 0 = Media1 = Secure2 = Allow selection | 1 (Secure) |
Sub folder pathsubfolder_path | Uploaded files will be moved into this sub folder path inside their SECURE or MEDIA (parent) folder | text | — | — |
Automatic renameauto_filename | Create filename using PHP code | multilist | 0 = No2 = Use custom code | 0 (No) |
Custom codeauto_filename_code | Note: return filename without the extension, set to empty and apply reload to see an example | editor | — | — |
File list columns
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Columnsfilelist_cols | Optional columns for the file list. Some columns like filename cannot be disabled | fccheckbox | — | — |
Auto-resize uploaded images
Resizing will be done at the user's browser, thus you get faster upload and less server space consumption
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Resizeresize_on_upload | Resize uploaded image to save server space and to speedup uploads, since this will be done at the client size (not all 'source' modes support this) | multilist | — = Use component setting0 = No1 = Yes | — |
Image widthupload_max_w | — | text | — | — |
Image heightupload_max_h | — | text | — | — |
Processing methodupload_method | Method of creating the image thumbnail. Scale: scales to fit both dimensions, keeping the aspect (height/width) ratio Crop: scales the image and as soon as one dimension fits the other dimension is cropped to the given size | radio | — = Use component setting0 = Scale1 = Crop | — |
Editing
Viewing
Viewing
Basic
Display
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show in clientsshow_in_clients | Select if the field will be created and shown to specific clients | fccheckbox | — | — |
Show in viewsshow_in_views | Select if the field will be created and shown to specific views | fccheckbox | — | — |
Label and access
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display labeldisplay_label | Display or hide label of this field | radio | 0 = No1 = Yes | 1 (Yes) |
Show no access messageshow_acc_msg | When field is inaccessible a no access message will be shown. NOTE: IF this parameter is disabled, the field will be invisible to users with no access, without any message or warning that it exists | multilist | 0 = No1 = Yes2 = Yes, append login link | 0 (No) |
No access messageno_acc_msg | Leave this blank to use system's default no access message, or enter a custom message for this field | text | — | — |
Export
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Include in CSV exportinclude_in_csv_export | Select to include field in CSV export. Take care that not all fields support CSV export. Please test to determine if this field is included properly, since a special method is needed but not implemented yet by all fields | multilist | 0 = No1 = Raw values2 = Rendered values | 0 (No) |
Strip HTML tagscsv_strip_html | — | radio | 0 = No1 = Yes | 0 (No) |
Rendered formatcsv_export_format | HTML: the file download display (as in frontend). Importable: values that the batch import tool can read back, to transfer files to another site. - External files (URL): {URL}...{/URL}{Altname}...{/Altname}{Desc}...{/Desc}{Custom1}...{/Custom1}{Custom2}...{/Custom2}{Ext}...{/Ext} - Local files: filename{Altname}...{/Altname}{Desc}...{/Desc}{Custom1}...{/Custom1}{Custom2}...{/Custom2}{Ext}...{/Ext}, place the files themselves inside the import folder (e.g. tmp/fcimport_docs) of the target site. {Custom1} / {Custom2} are the custom (HTML) file properties, they are written only when they have a value. Values are never stripped of their {...} tags, even if HTML stripping is enabled. | radio | html = HTMLimportable = Importable | html (HTML) |
Inaccessible files
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Shownoaccess_display | Select to display file information or skip the file altogether | radio | 0 = No1 = Yes2 = Yes, no description | 1 (Yes) |
Append file variablesnoaccess_addvars | This is meant for developers, and will enable adding variables file_id, field_id, item_id to the no access URL, allowing for custom handling e.g. purchase item | radio | 0 = No1 = Yes | 0 (No) |
Unlogged users
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Redirect URLnoaccess_url_unlogged | Optional redirection URL for unlogged users, e.g. login or subscribe page | text | — | — |
Messagenoaccess_msg_unlogged | Display a custom message e.g. a message 'no access' or 'please login' or 'not purchased' | text | — | — |
Logged users
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Redirect URLnoaccess_url_logged | Optional redirection URL for logged users, e.g. purchase page etc | text | — | — |
Messagenoaccess_msg_logged | Display a custom message to logged user e.g. a message 'no access' or 'not purchased' | text | — | — |
Backend View
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Backend view appearancebackend_view_appearance | How this field's value is displayed in the admin items list. Overrides the global 'Custom columns appearance' setting when not set to Default. | multilist | 0 = Default1 = Check mark2 = Clean up HTML and trim | 0 (Default) |
Trim length (characters)backend_view_trim_chars | Number of characters to keep after stripping HTML tags. | text | — | 100 |
File actions
Button configuration for actions such as: download, view, share, add-to-cart
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Use buttonsusebutton | Select to display links or button or other | multilist | 0 = Links1 = Buttons | 1 (Buttons) |
Buttons positionbuttonsposition | Position of the buttons (download, share, add to cart) relative to the filename | radio | 0 = Before1 = After | 1 (After) |
Action separation character(s)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Use separation character(s)use_action_separator | You may want not to use separation characters and rely only on CSS for styling the display | multilist | 0 = Line break1 = Custom | 0 (Line break) |
Customaction_separator | Separation character(s) will be placed between displayed action link or action buttons | text | — | — |
File actions
Downloads
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Allow downloadsallowdownloads | Normally you would want to allow this, you can disable though if you are using downloads manager module (downloads cart module). NOTE: when downloads are enabled, then ACL/Access levels are always used to determine if frontend user can download the file | multilist | 0 = No1 = Yes2 = Yes, custom text | 1 (Yes) |
Custom download textdownloadstext | Normally the button will display 'Download', you can set a custom text here, e.g. 'Get It!' , etc | text | — | FLEXI_DOWNLOAD (Download) |
Force file URLs to download
You can not force an external media URL to be downloaded by the browser. Enabling this will pipe the external file url though the web-server to force it to download. Disable this if you have problems downloading file URLs !!! Also external server must be able to report file sizes properly ...
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enableforce_url_download | File URLs will be piped through the web-server to be able to force a download. Disable if you run into problems !!! | multilist | 0 = No1 = Yes | 0 (No) |
Extensions to forceforce_url_download_exts | Normally the button will display 'Download', you can set a custom text here, e.g. 'Get It!' , etc | text | — | bmp,wbmp,gif,jpg,jpeg,png,webp,ico,wav,mp3,aiff |
Max file size (KBs)force_url_download_max_kbs | Download of larger files will not be piped through web-server. Instead file url will be opened via a redirection to it | text | — | 100000 |
In-browser viewing
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show view buttonallowview | Allows viewing the file inside the browser | multilist | 0 = No1 = Yes2 = Yes, custom text | 0 (No) |
Custom view textviewtext | Normally the button will display 'View', you can set a custom text here, e.g. 'Click to view' , etc | text | — | — |
View insideviewinside | Select to view file in same / new window | radio | 0 = Fancybox modal1 = GLightbox modal (responsive + fullscreen)2 = New window3 = Same window | 1 (GLightbox modal (responsive + fullscreen)) |
PDF stamping
Add text to all pages
Requires manual installation of 2 libraries: tcpdf and fpdi into folder /components/com_flexicontent/librairies/TCPDF
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Add stamp textsstamp_pdfs | Modify PDF files on download to add a stamping text | multilist | 0 = No1 = Yes | 0 (No) |
Customize
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Headerpdf_header_text | This text will be added to all pages of the PDF file, For current date and language strings use: {{current_date}} %%LANG_NAME%% | textarea | — | — |
Footerpdf_footer_text | This text will be added to all pages of the PDF file, For current date and language strings use: {{current_date}} %%LANG_NAME%% | textarea | — | — |
Header
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Font familypdf_header_ffamily | Select a font-family to for the header text | list | Courier = CourierHelvetica = HelveticaArial = ArialTimes = TimesSymbol = SymbolZapfDingbats = ZapfDingbats | Helvetica (Helvetica) |
Font stylepdf_header_fstyle | Either leave this empty, which means regular font, Or enter a combination of b i u (b:bold, i:italic, u:underline). Example for bold and italic: bi | text | — | — |
Font sizepdf_header_fsize | Size is in points. Enter only integers without any suffix | number | — | 11 |
Alignpdf_header_align | Left, right, center alignment of text | list | C = CenterL = LeftR = Right | C (Center) |
Border typepdf_header_border_type | Indicates if borders must be drawn around the cell. The value can be either a number: 0: no border (default), 1: frame or a string containing some or all of the following characters (in any order): L: left, T: top, R: right, B: bottom | text | — | 0 |
Footer
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Font familypdf_footer_ffamily | Select a font-family to for the header text | list | Courier = CourierHelvetica = HelveticaArial = ArialTimes = TimesSymbol = SymbolZapfDingbats = ZapfDingbats | Helvetica (Helvetica) |
Font stylepdf_footer_fstyle | Either leave this empty, which means regular font, Or enter a combination of b i u (b:bold, i:italic, u:underline). Example for bold and italic: bi | text | — | — |
Font sizepdf_footer_fsize | Size is in points. Enter only integers without any suffix | number | — | 11 |
Alignpdf_footer_align | Left, right, center alignment of text | list | C = CenterL = LeftR = Right | C (Center) |
Border typepdf_footer_border_type | Indicates if borders must be drawn around the cell. The value can be either a number: 0: no border (default), 1: frame or a string containing some or all of the following characters (in any order): L: left, T: top, R: right, B: bottom | text | — | 0 |
Dates
Date part
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Date formatstamp_date_format | If you choose 'custom format' in the dropdown above you have to specify in this field the format you wish to render using the PHP date (not strftime) syntax (http://php.net/manual/en/function.date.php). | multilist | DATE_FORMAT_LC1 = DATE_FORMAT_LC1DATE_FORMAT_LC2 = DATE_FORMAT_LC2DATE_FORMAT_LC3 = DATE_FORMAT_LC3DATE_FORMAT_LC4 = DATE_FORMAT_LC4_custom_ = Custom format | DATE_FORMAT_LC2 (DATE_FORMAT_LC2) |
Custom formatstamp_custom_date | If you choose 'custom format' in the dropdown above you have to specify in this field the format you wish to render using the PHP strftime syntax (http://php.net/strftime). | text | — | — |
Language filter formatstamp_lang_filter_format | Apply language filter JText::_() on the format string which must be a language string, either added in a language file, or added by Joomla language overrides manager. WARNING: You need to disable language filtering if not adding language string! otherwise some characters will be stripped out like comma | radio | 0 = No1 = Yes | 0 (No) |
Timezone part
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Timezone suffix after datesstamp_display_tz_suffix | Enable this to show a numerical timezone offset when displaying the dates, or you can do manualy via a custom date format string | multilist | 0 = No, I will do manually1 = Yes | 1 (Yes) |
Timezone logged viewersstamp_display_tz_logged | Select to the timezone to use for displaying dates to logged viewers | list | 0 = Ignore1 = UTC+02 = Site's timezone3 = User local time | 0 (Ignore) |
Timezone guest viewersstamp_display_tz_guests | Select to the timezone to use for displaying dates to unlogged viewers | list | 0 = Ignore1 = UTC+02 = Site's timezone | 0 (Ignore) |
Cart
Download cart
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show add to cartuse_downloads_manager | Requires download manager module. This feature allows adding files to a downloads cart, then user can arrange his/her downloads into folders and download them via a single compressed archive. Also allows storing/deleting/renaming the file carts, etc ... | multilist | 0 = No1 = Yes2 = Yes, custom text | 0 (No) |
Custom add to cartaddtocarttext | Normally the button will display 'Add to cart', you can set a custom text here, e.g. 'Add to my downloads' , etc | text | — | — |
Sharing
Sharing
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Show share buttonallowshare | Allows sharing the download link via sending an email | multilist | 0 = No1 = Yes2 = Yes, custom text | 0 (No) |
Custom share textsharetext | Normally the button will display 'Share', you can set a custom text here, e.g. 'Share with friend' , etc | text | — | — |
Download coupons e.g. when a user shares (via email / etc) a file download link to a user that does not have download access
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Enable download couponsenable_coupons | When sharing file (download) links, the users receiving the link (e.g. via email/etc), may not have the required access level for downloading the file. Enable this to allow these users to download the file, by creating download coupons | multilist | 0 = No1 = Yes | 0 (No) |
Coupon hits limitcoupon_hits_limit | This limit the number of downloads (hits) that can be made using each coupon. Set this to -1 for no limit, thus coupons will expire only when expiration date is reached | text | — | 3 |
Coupon expiration dayscoupon_expiration_days | How long the coupon will be usable after it is created | text | — | 15 |
Download limits
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Download limits for this fielddl_limit_override | Use the component settings, use the settings below for this field, or exempt this field from download limits. | multilist | 0 = Component settings1 = This field's own settings2 = No limits | 0 (Component settings) |
Limit how many files each user group can download in a period (minutes, hours or days), across all fields that use these limits. Downloads are counted per logged-in user, and per visitor (cookie + IP) for guests. A group inherits the limit of its parent groups; if several groups match, the highest limit wins. Super users are never limited.
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Counting modedl_limit_count_mode | Any file: every download counts, even of the same file. Unique file: a file counts only once during the period, downloading it again is free. | radio | 0 = Any file1 = Unique file | 0 (Any file) |
Perioddl_limit_window | Length of the sliding period, together with the unit below. E.g. 24 hours, 30 days, or 5 minutes (with a limit of 1 file: not more than one download every 5 minutes). Download records older than this period are deleted automatically. | number | — | 24 |
Period unitdl_limit_window_unit | Minutes, hours or days. | list | 1 = Minutes60 = Hours1440 = Days | 60 (Hours) |
Limit per user groupdl_limit_groups | Number of files per period. Use -1 for unlimited. Groups not listed (and not inheriting a listed parent group) are not limited. | subform | — | — |
Guest IP allowance (multiplier)dl_limit_guest_ip_factor | Guests are limited per browser (cookie). To stop quota resets by clearing cookies, they are also limited per IP address, at the group limit multiplied by this number, so several visitors behind one IP address (office, school) do not share a single quota. | number | — | 5 |
Count coupon / download cart downloadsdl_limit_count_special | Downloads made through shared-link coupons or the downloads cart bypass access levels. Select Yes to also apply the limits to them. | radio | 0 = No1 = Yes | 0 (No) |
Limit reached: modal HTMLdl_limit_modal_html | HTML shown in a modal window when a user with an exhausted quota clicks a disabled download button, e.g. text and a Register / Subscribe button. Leave empty for the default message. Placeholders: {reset_in} time until the next download is possible (the period is sliding, so the oldest download expires first), {reset_full_in} time until the counter is back to zero, {reset_seconds} same as {reset_in} in seconds, {limit} files allowed, {used} files used, {window} length of the period, e.g. 5 min, 24 h, 7 d. | textarea | — | — |
File actions
File display
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Values layoutviewlayout | Please note: - do not modify default layouts, - custom layouts may need updating in future to respect new configuration and work properly - to create new copy (same folder): plugins/flexicontent_fields/FIELD_TYPE/tmpl/value_*.php as value_mytemplate.php - or to folder: /templates/SOME_NAME/html/flexicontent_fields/FIELD_TYPE/ and then modify | fcfilelist | — | — |
Compact displaycompact_display | Compact display of files information and file actions to save space. | radio | 0 = No1 = Yes2 = Yes, as icon | 0 (No) |
Value list placementvalues_list_placement | Value list can be placed inline, or inside a slider | multilist | 0 = Inline1 = In slider | 0 (Inline) |
Slider titlevalues_slider_title | You may customize the title of the values list slider | text | — | FLEXI_FILES (Files) |
File totals
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Number of filesdisplay_total_count | Enable this to show the total number of files | multilist | 0 = Hide1 = Show | 0 (Hide) |
Total files labeltotal_count_label | Customize the label text | text | — | FLEXI_FIELD_FILE_TOTAL_FILES (Total files) |
Downloads counterdisplay_total_hits | Enable this to show a sum of the total downloads (hits) | multilist | 0 = Hide1 = Show | 0 (Hide) |
Total downloads labeltotal_hits_label | Customize the label text | text | — | FLEXI_FIELD_FILE_TOTAL_DOWNLOADS (Total downloads) |
Individual files
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Use mime iconuseicon | Add a mime icon before the filename. | radio | 0 = No1 = Yes | 0 (No) |
Display filenamedisplay_filename | Shows filename (NOTE: this you can link filename to download only when using links instead of buttons) | radio | -1 = No (force)0 = No1 = Yes, prefer file title2 = Yes | 1 (Yes, prefer file title) |
Lowercase filenamelowercase_filename | The filename or file title will be forced to be lowercase | radio | 0 = No1 = Yes | 1 (Yes) |
Link filenamelink_filename | This will link filename as download. NOTE: this setting is ignored when using buttons instead of links | radio | 0 = No1 = Yes | 1 (Yes) |
Information
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display languagedisplay_lang | Show file language. This is useful if you have multiple files with different language contained inside the same item | radio | 0 = No1 = Yes, as icon2 = Yes, as text3 = Yes, both | 1 (Yes, as icon) |
Display sizedisplay_size | Show file size. This can be either in KBs / MBs / GBs | radio | 0 = No1 = Yes, as icon2 = Yes, as text3 = Yes, both | 0 (No) |
Display hitsdisplay_hits | Display hits | radio | 0 = No1 = Yes, as icon2 = Yes, as text3 = Yes, both | 0 (No) |
Display descriptiondisplay_descr | Shows description as Tooltip OR as Inline Text | radio | 0 = No1 = Yes, as popup tooltip2 = Yes, as inline text | 1 (Yes, as popup tooltip) |
Information separation character(s)
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Use separation character(s)use_info_separator | You may want not to use separation characters and rely only on CSS for styling the display | multilist | 0 = Line break1 = Custom | 0 (Line break) |
Custominfo_separator | Separation character(s) will be placed between displayed information | text | — | — |
File list
Prefix - Suffix - Separator
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Preset configurationsprx_sfx_open_close_configs | This is a list of preset configurations, after loading them, you can click custom again to customize them | multilist | — = Customize1 = List: numbered2 = List (bullets)3 = List (circle)4 = List (square)5 = List (no marking) | — |
Remove spaceremove_space | Remove the space between prefix value and suffix. It's recommended for plugin use, for example {play}mysong.mp3{/play} | radio | 0 = No1 = Yes | 0 (No) |
Every value prefixpretext | This text is placed immediately before every field value | text | — | — |
Every value suffixposttext | This text is placed immediately after every field value | text | — | — |
NOTE: opening / closing texts and value separator, are not used inside a fieldgroup
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Value separator (frontend views)separatorf | Choose a separator to separate the values in frontend views (placed between values) | multilist | 0 = Space1 = Line break6 = Horizontal line2 = Pipe3 = Comma4 = Texts: Closing + Opening5 = Empty (No characters)7 = Custom separator | 1 (Line break) |
Custom separatorseparatorf_custom | — | text | — | — |
Opening text for Fieldopentag | This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |
Closing text for Fieldclosetag | This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type. | text | — | — |
Content plugins
Content Plugins -- You need this for description field, for other fields enable only if needed
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Trigger content pluginstrigger_onprepare_content | Enable this option if you want to trigger content plugin event: onPrepareContent. A small number of plugins may not work outside com_content. | multilist | 0 = No1 = Yes | 0 (No) |
Trigger inside categorytrigger_plgs_incatview | Trigger content plugins on this field when item is displayed in a category view | radio | 0 = No1 = Yes | 0 (No) |
Specific plugins onlyplugins | You can choose specific plugins in this list or leave empty to trigger all. This feature is useful in some cases to avoid conflicts, multiple displays or reduce the load. Keep in mind that once the plugin is imported for a field, it will automatically be executed on all following fields in the loop. | pluginlist | — | — |
Viewing
Notifications
Enable this to send notifications emails when a file is downloaded
Email notifications every N downloads
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Send hit notificationssend_notifications | Enable this to send notifications emails when a file is downloaded | multilist | 0 = No1 = Yes | 0 (No) |
Every N hitsnotifications_step | Send email every N hits | text | — | 20 |
Notification textnotification_tmpl | The text that will be sent for every file. NOTE: you may use these replacements: %%language_string%%, file_hits file_id file_name item_title item_url | textarea | — | %%FLEXI_HITS%% __FILE_HITS__ %%FLEXI_FDN_FILE_NO%% __FILE_ID__: [__FILE_TITLE__] %%FLEXI_FDN_FILE_IN_ITEM%% __ITEM_TITLE__: __ITEM_URL__ |
Send TO
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
to specific emailssend_all_to_email | Notifications for any file will be sent these email(s) seperate emails with comma , | text | — | — |
to content item ownersend_to_current_item_owner | Send email to owner of the content item that contains the downloaded file | radio | 0 = No1 = Yes | 0 (No) |
to emails of EMAIL fieldsend_to_email_field | The email field must have value(s) in the SAME content item that the file field is contained, e.g. both file field and email field are displayed inside item 'A' | fields | — | — |
Filtering
Parameters used for filtering in (a) Category-based views , (b) search view
Advanced Search View
| Option | Description | Type | Values | Default |
|---|---|---|---|---|
Display Filter asdisplay_filter_as_s | Select appearance/behavior of the filter | list | 1 = Text Search | 0 |