Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is great, but users still have to click on "Advanced upload" every time. I'd like Advanced to be the default (or ideally, the only) option - is there any way to enable this?
Comments
Comment #1
atlea CreditAttribution: atlea commentedThis is controled by filefield_sources, witch this module is only a "plugin" to. You could try to make a feature request to disable the default?
OR - You could try to fix this with javascript in your theme. Submit a click event on the link and then hide the others.
Comment #2
adam_b CreditAttribution: adam_b commentedThanks - I found what looks like a relevant issue here: #742134: I would like to disable the default "Upload" source in favour of using the upload option within IMCE , so I'll see what I can come up with.
Comment #3
osman@adam_b, you can use jQuery to activate the Plupload tab and hide options:
Comment #4
monaw CreditAttribution: monaw commentedI tried the above and it didn't work for me...no syntax error in the Safari Web Inspector. Here is the code I put in my custom module:
Comment #5
akroplas CreditAttribution: akroplas commentedTry
(document).ready(function () {}
Above code works on my page.
Comment #6
jh81 CreditAttribution: jh81 commented#5 Works perfectly for me. Thanks!
Comment #6.0
jh81 CreditAttribution: jh81 commentedminor edit for clarity
Comment #7
ryantollefson CreditAttribution: ryantollefson commentedThank you!