When I started using the plugin, adding only directories with images seemed inconvenient to me. Because I required the ability to add individual files also. In my revision, I added this feature, made this method universal (you can specify both directories and individual files) and slightly improved other points.
Change list
Added the targets field as a universal way to include images from entire folders or specific files. Using this field, you can include multiples targets (one and more).
- Backward compatibility with the `path` field has been preserved. But now it is not “required” and marked as “deprecated” because `targets` is the preferred method because of its versatility. Field `path` can be used together with the field `targets`, images from these sources will be merged in the gallery.
- Improved warnings and error messages. If `path` or any target from `targets` is incorrect, a warning about it will be entered in the console. If the resulting list of files turns out to be empty, a corresponding error will be output to the container.
- Updated README according to the relevant changes.
## Conclusion
If you have any feedback: code additions, suggestions, comments, questions. I will be glad! :)
What does this PR?
When I started using the plugin, adding only directories with images seemed inconvenient to me. Because I required the ability to add individual files also. In my revision, I added this feature, made this method universal (you can specify both directories and individual files) and slightly improved other points.
Change list
targets
field as a universal way to include images from entire folders or specific files. Using this field, you can include multiples targets (one and more).For example: