Less than Media, but good enough. This module adds an image browser (using Views) to a FileField Sources widget/field. It uses FileField Sources for submission and field settings.
- Media adds a file/image browser. So does this module.
- Media adds a lot of crazy options. This module doesn't.
- Media is insanely hard to extend (partly because it's HUGE). This module isn't.
- The FileField Sources "reference" field is impractical, because you don't know the image's filename, but you do know what it looks like. This module add visuals.
Set up / enable
- Download & install
- Create an image field (any (?) widget)
- Enable "Autocomplete reference textfield" under "File sources" (field instance settings)
- That's it. Go to the (node) form and select "Reference existing". There will be a new button "Choose file"
Extensibility
This module comes with a free, standard grid View. You can override that. If you're a fan of Features, you can clone it and disable the old one. The new one is then used (and featurizable!) because the path is still "admin/visual_select_file" and the tag is "visual_select_file".
API
Two hooks: hook_visual_select_file_formatter_options_alter()
and hook_visual_select_file_results_alter()
. See visual_select_file.module for context.
All JS is divided into small chunks (like Drupal.visualSelectFile.openGrid()
and Drupal.visualSelectFile.openButtonLabel
) to make changes simple.
CKEditor
1.3+ comes with a CKEditor button to add files to your WYSIWYG fields.
Upload
1.5+ comes with an upload form, to upload files directly into your WYSIWYG fields.
Manual Crop
1.6+ comes with Manual Crop support for VSF WYSIWYG.
Project information
- Seeking new maintainer
The current maintainers are looking for new people to take ownership. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Site Structure, Media
- 269 sites report using this module
- Created by rudiedirkx on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 1 Feb 2019 at 09:33 UTC