From f02d367641a2a270f5d271ec5242c73b558327cf Mon Sep 17 00:00:00 2001 From: Llewellyn Date: Fri, 23 Aug 2024 17:25:30 +0000 Subject: [PATCH] Create Imagelist --- .../item.json | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 src/72680e92-2859-49c6-ad92-c2329c52f9f8/item.json diff --git a/src/72680e92-2859-49c6-ad92-c2329c52f9f8/item.json b/src/72680e92-2859-49c6-ad92-c2329c52f9f8/item.json new file mode 100644 index 0000000..f99b605 --- /dev/null +++ b/src/72680e92-2859-49c6-ad92-c2329c52f9f8/item.json @@ -0,0 +1,93 @@ +{ + "name": "Imagelist", + "short_description": "Provides a drop down list of image files from a specified directory.", + "description": "The imagelist form field type provides a drop down list of image files in a specified directory. Only files with .png, .gif, .jpg, .bmp, .ico extensions are listed. If the field has a saved value this is selected when the page is first loaded. If not, the default value (if any) is selected.\r\n\r\nBy default, the first item on the list is '- Do not use -' (which is translatable) and is given the value '-1' and this is followed by '- Use default -' (also translatable) given the value '0'.", + "properties": { + "properties0": { + "name": "type", + "example": "imagelist", + "mandatory": "1", + "description": "(mandatory) must be imagelist." + }, + "properties1": { + "name": "name", + "example": "myimagelist", + "adjustable": "1", + "mandatory": "1", + "description": "(mandatory) is the unique name of the field." + }, + "properties2": { + "name": "label", + "example": "Select an image", + "adjustable": "1", + "mandatory": "1", + "translatable": "1", + "description": "(mandatory) (translatable) is the descriptive title of the field." + }, + "properties3": { + "name": "directory", + "example": "images\/stories", + "adjustable": "1", + "description": "(optional) is the filesystem path to the directory containing the image files to be listed. If omitted the directory given by JPATH_ROOT is assumed." + }, + "properties4": { + "name": "default", + "example": "", + "adjustable": "1", + "description": "(optional) is the default image file name." + }, + "properties5": { + "name": "description", + "example": "", + "adjustable": "1", + "translatable": "1", + "description": "(optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box." + }, + "properties6": { + "name": "filter", + "example": "", + "adjustable": "1", + "description": "(optional) is a regular expression string which is used to filter the list of image files selected for inclusion in the drop-down list. If omitted, all image files in the directory are included. The filter argument expression is applied before the exclude argument expression. For information on constructing regular expressions see Regular expressions in parameter arguments." + }, + "properties7": { + "name": "exclude", + "example": "", + "adjustable": "1", + "description": "(optional) is a regular expression string which is used to exclude image files from the list. The exclude argument expression is applied after the filter argument expression. For information on constructing regular expressions see Regular expressions in parameter arguments." + }, + "properties8": { + "name": "stripext", + "example": "", + "adjustable": "1", + "description": "(optional) is a Boolean argument. If true then file name extensions will be stripped from the image file names listed. Also note that the file name will be saved without the extension too." + }, + "properties9": { + "name": "hide_none", + "example": "", + "adjustable": "1", + "description": "(optional) is a Boolean argument. If true, the '- Do not use -' item is omitted from the drop-down list." + }, + "properties10": { + "name": "hide_default", + "example": "", + "adjustable": "1", + "description": "(optional) is a Boolean argument. If true, the '- Use default -' item is omitted from the drop-down list." + }, + "properties11": { + "name": "showon", + "example": "", + "adjustable": "1", + "description": "(optional) show this field on the bases of the value in another field. https:\/\/joomla.stackexchange.com\/a\/17682\/2166" + } + }, + "has_defaults": "0", + "datatype": "", + "datalenght": "", + "datalenght_other": "", + "datadefault": "", + "datadefault_other": "", + "indexes": "0", + "null_switch": "NOT NULL", + "store": "0", + "guid": "72680e92-2859-49c6-ad92-c2329c52f9f8" +} \ No newline at end of file