Skip to content

A concrete5.7 attribute type that allows the selection of multiple files

License

Notifications You must be signed in to change notification settings

Mesuva/multi_file_selector_attribute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi File Selector Attribute

A multiple file selector attribute for concrete5 version 5.7.

  • Allow multiple files to be selected from the file manager
  • Selected files can be dragged and dropped to re-order
  • Attribute can restrict selection to a type of file (images, documents, audio, etc)
  • A maximum number of items can be also configured

Once installed, you can fetch the attribute in a page template one of two ways:

$fileList = $c->getAttribute('gallery_files');
// $fileList now contains an array of file objects. This can be looped over, output as a gallery, etc


For reference, the original string with comma seperated ID values can be retrived via:
$fileListIDs = $c->getAttribute('gallery_files', 'raw');

Deprecated

This attribute is for v5.7 cores. For v8+ use the newer https://github.com/Mesuva/msv_multiple_file_selector_attribute

About

A concrete5.7 attribute type that allows the selection of multiple files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages