hey
i'm loving this module :)
suggesting these features:
- size limits and other settings like in FileField :: file sizes, image sizes, etc :: new/merge
- more fields like in FileField :: other fields attached to the field, like image title text, image alt text, description, additional custom fields :: new/merge
- ui settings like in FileField UI Exras :: be able to show/hide the fields, in fieldsets, with options per field in the content type :: new/merge
- more sources like in FileField Sources :: local file/ftp directory, IMCE?, autocomplete box for everything :: new/merge
- pathing rules like in FileField Paths :: define where to save the files and other settings with tokens :: integration?
- alias rules like in File Aliases :: same for file aliases: integration?
- add insert button to fields, like in Insert :: so we have the "insert" button in wysiwyg, which calls a new upload box, but we dont have one button on the fields :: new/merge
- adding the media with WYSIWYG "insert" button does not add the media to the fields.
not sure if any of these are already on the plans
Comments
Comment #1
lpalgarvio CreditAttribution: lpalgarvio commentedforgot WYSIWYG Fields
http://www.youtube.com/watch?v=-CYGPCCzWYo&feature=youtu.be
it deprecates WYSIWYG ImageField
- allow choosing which ImageCache/Styles are to be enabled for each field, besides the default style
ie, i have a site with over 120 styles. i don't want to list all of them when uploading files. Insert allows this.
"steal" ideas here:
Node Reference/Embed Media Browser (nrembrowser)
ImageField Extended
Comment #2
tomgf CreditAttribution: tomgf commentedI agree with you. Any comments from the development team?
Comment #3
JacobSingh CreditAttribution: JacobSingh commentedYou are the development team! This is open source ;)
Seriously though, I support all of these (if not in media at least somewhere). But they should really end up in their own feature request issues with more detail.
Comment #4
lpalgarvio CreditAttribution: lpalgarvio commentedmight do that tomorrow if i remember :)
had to summarize everything first and check general impressions ^^
Comment #5
tomgf CreditAttribution: tomgf commentedYes, JacobSingh, I know… Sorry for asking a stupid question. I meant which of these things are already in the development queue…
So, how can we cooperate with the development without stepping somebody's toes…?
For instance, I am very interested in having pathing rules and I can try to provide some code.
Comparing media.module with file.module – which has this feature – I recognized that file.module uses a file_managed_file_save_upload function, that receives an $element['#upload_location'] (and prepares the directory if it is not available).
Would it be a good way to do it mimicking this function in media.module…?
Comment #6
cocoloco CreditAttribution: cocoloco commented@LPCA: Regarding "allow choosing which ImageCache/Styles are to be enabled for each field, besides the default style", I'm working on a module (Media Image Transform) that will allow you to specify crops, ImageCache actions, and other filters to be applied to images on a per-instance basis.
You can find out more info here: http://drupal.org/sandbox/cocoloco/1090384
Comment #7
darklrd CreditAttribution: darklrd commentedHello everyone
I want to work on this module as part of GSoC 2011. I have posted my proposal here - http://groups.drupal.org/node/137104. The duration of the project will 2 - 3 months. The main focus will be integration with WYSIWYG module. I am still preparing the list of features that will be covered. If you have any suggestions, some important features that should be included and I have missed them, please post it there.
Thanks
Comment #8
szaszg CreditAttribution: szaszg commented"- more sources like in FileField Sources :: local file/ftp directory, IMCE?, autocomplete box for everything :: new/merge"
Here is a patch to use IMCE with media (instead of the quite unusable "media browser plus")
http://drupal.org/node/817654#comment-4328478
Comment #9
lpalgarvio CreditAttribution: lpalgarvio commented- size limits and other settings like in FileField :: file sizes, image sizes, etc :: new/merge
#1140434: Size limits and other settings like in FileField
- more fields like in FileField :: other fields attached to the field, like image title text, image alt text, description, additional custom fields :: new/merge
#1140428: more fields like in FileField
- ui settings like in FileField UI Exras :: be able to show/hide the fields, in fieldsets, with options per field in the content type :: new/merge
#1140424: ui settings like in FileField UI Exras
- more sources like in FileField Sources :: local file/ftp directory, IMCE?, autocomplete box for everything :: new/merge
#1140422: more sources like in FileField Sources
- pathing rules like in FileField Paths :: define where to save the files and other settings with tokens :: integration?
#1140418: pathing rules like in FileField Paths. integration?
- alias rules like in File Aliases :: same for file aliases: integration?
#1140406: alias rules like in File Aliases :: same for file aliases: integration?
- add insert button to fields, like in Insert :: so we have the "insert" button in wysiwyg, which calls a new upload box, but we dont have one button on the fields :: new/merge
#1140404: Add insert module integration
- adding the media with WYSIWYG "insert" button does not add the media to the fields.
#1140400: adding the media with WYSIWYG "insert" button does not add the media to the fields
Comment #10
lpalgarvio CreditAttribution: lpalgarvio commentedthis might be covered by File Styles and the Styles module, in the future?
if not, oh oh, something needs to be done
Comment #11
osopolarHave also a look on the documentation (it's still incomplete and sometimes outdated, feel free to help there):
Styles structure explained (very good overview): http://drupal.org/node/1092444
Using Media as a field: http://drupal.org/node/703336
WYSIWYG Integration: http://drupal.org/node/703338
@LPCA have you had a look on http://www.drupalgardens.com ? There I guess you will see that at least some of your requests are already implemented.
Comment #12
petervd CreditAttribution: petervd commentedAt this moment all images are uploaded to the public (or private) area. This becomes a mess when having hundreds of files (as in a bird photo site).
Being able to specify a subdirectory in the popup upload window would be a real benefit.
---
For my local site I did the following patch in the code which works for me but is not idiot-proof.
Step 1. In file modules/media/media.pages.inc - function function media_add_upload (line 178) - add lines between 'pvd' comment
$form['upload'] = array(
'#type' => 'file',
'#title' => t('Upload a new file'),
'#description' => theme('file_upload_help', array('description' => '', 'upload_validators' => $validators)),
'#upload_validators' => $validators,
);
//pvd------------------------------------
$form['directory'] = array(
'#type' => 'textfield',
'#title' => t('Directory'),
'#description' => t('Enter a directory path where to store the image e.g. birds/europe/ as path (make sure to specify closing /).'),
'#default_value' => '',
);
//pvd------------------------------------
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Submit'),
);
Step 2. In file modules/media/media.pages.inc - function function media_add_upload_submit (around line 245) - add lines between 'pvd' comment
function media_add_upload_submit($form, &$form_state) {
$scheme = variable_get('file_default_scheme', 'public') . '://';
//pvd------------------------------------
$scheme = $scheme . $form_state['values']['directory'];
//pvd------------------------------------
$file = $form_state['values']['upload'];
Step 3: Probably do the same in function media_add_upload_multiple_submit
function media_add_upload_multiple_submit($form, &$form_state) {
$scheme = variable_get('file_default_scheme', 'public') . '://';
//pvd------------------------------------
$scheme = $scheme . $form_state['values']['directory'];
//pvd------------------------------------
$saved_files = array();
Beware: the directory has to exist under your default file upload place. No checking is done in this simple solution.
Dare devils can always patch a mistake in the path directly in the database table 'file_managed'
hope this helps
Comment #13
lpalgarvio CreditAttribution: lpalgarvio commentedthe scope of this issue is more than just paths.
reverting issue to previous name.
@patch
it's a nice friendly idea, perhaps it could be added to the FileField Paths module or something
- pathing rules like in FileField Paths :: define where to save the files and other settings with tokens :: integration?
http://drupal.org/node/1140418
Comment #14
jagermonster CreditAttribution: jagermonster commentedI think it would be great to have some more permissions available with this module.
Create new media
Edit own media
Edit any media
Delete own media
Delete any media
To reflect the permissions that is available on content types. Also make the media browser capable of showing all media or just media that belongs to the current user.
Comment #15
protools CreditAttribution: protools commented+ 1 for WYSIWYG Fields
http://drupal.org/node/1140400
Comment #16
Dave ReidComment #17
bryancasler CreditAttribution: bryancasler commentedsubscribe
Comment #18
moniuch CreditAttribution: moniuch commentedsubscribe
Autocomplete widget for linking to existing media would be a diamond!
Comment #19
Dave ReidWe all agree new feature are great. Let's make sure they have separate issues for each one in the correct places (Media vs File entity) and stop using a meta issue.