A patch to improve speed, ad functionality, and fix bugs.
Solves the following issues..could not post in separate patches because the code in question was all lumped together.
Image style derivative is always generated, even if available
https://www.drupal.org/node/2611470
Support for relative path
https://www.drupal.org/node/2853035
Token for mimetype will never get created for images
https://www.drupal.org/node/2853027
token for image derivate path appends "%3Apath" to image style name part of url
https://www.drupal.org/node/2744265
Image style derivative not create when using first, second, third tokens
https://www.drupal.org/node/2853083
Also adds support for 'last' and numerical selection for multivalued fields.
Comment | File | Size | Author |
---|---|---|---|
#11 | improve-speed-add-functionality-fix-bugs-11.patch | 8.33 KB | monstrfolk |
|
Comments
Comment #2
monstrfolk CreditAttribution: monstrfolk commentedComment #3
monstrfolk CreditAttribution: monstrfolk commentedComment #4
monstrfolk CreditAttribution: monstrfolk commentedAdded image style derivatives to be properly created when using first, second, third, last, and integer tokens.
Comment #5
monstrfolk CreditAttribution: monstrfolk commentedComment #6
DamienMcKennaA minor thing - the description of each param needs to follow the standard commenting rules, i.e. structured as a sentence, have a period at the end, acronyms should be in uppercase, etc. Otherwise it looks good.
Comment #7
monstrfolk CreditAttribution: monstrfolk commentedThank you for your review. New description block below.
Also added one small fix to check if index selected for multi-value fields exist.
Comment #8
monstrfolk CreditAttribution: monstrfolk commentedUploaded patch again for testing. Last patch was uploaded with testing off by accident.
Comment #9
monstrfolk CreditAttribution: monstrfolk commentedComment #11
monstrfolk CreditAttribution: monstrfolk commentedWrong patch.
Comment #12
monstrfolk CreditAttribution: monstrfolk commentedComment #14
monstrfolk CreditAttribution: monstrfolk commentedComment #16
anni CreditAttribution: anni commentedI applied the patch but the problem is still the same. The code now is: $output[] = image_style_url($type, $field['uri']); at line 265 but still I get %3Apath inserted.
Comment #17
anni CreditAttribution: anni commentedSuddenly it works.