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.
In the tool "import" of the Image module is imported 50 images at a time.
How can I reduce the number of images that are imported from a single time from 50 to 40?
(I'm having problems with "access denied" in the batch process)
Comment | File | Size | Author |
---|---|---|---|
#6 | 993042-3.image_.image-import-page-size.patch | 1.38 KB | joachim |
#2 | image.import-page-size.2.patch | 1.36 KB | sun |
Comments
Comment #1
joachim CreditAttribution: joachim commentedYou can use devel module to set the image_import_page_size variable.
(We should maybe add an option in the admin UI for that ... if you have time to provide a patch, please change this to a feature request.)
Comment #2
sunNothing easier than that.
Comment #3
joachim CreditAttribution: joachim commentedNot sure what you mean by this comment.
Other than that looks good.
Powered by Dreditor.
Comment #4
sunThe value is currently "hard-coded" to 50, and the maximum number of items being displayed affects the maximum that can be imported in one fell swoop. Thus, #maxlength of 3 effectively limits the UI import to a maximum of 999 images.
Let's tweak that comment prior to commit. I'm happy with anything (even with dropping it entirely).
Comment #5
joachim CreditAttribution: joachim commentedIt's definitely worth explaining.
'Limits this value to a 3-digit number, hence 999 images. Higher values should use settings.php.'
If that fits in 80 chars ;)
Comment #6
joachim CreditAttribution: joachim commentedHow about this?
Comment #7
joachim CreditAttribution: joachim commentedBetter title.
Comment #8
sunThanks for reporting, reviewing, and testing! Committed to D6.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.