grav-plugin-shortcode-gallery-plusplus icon indicating copy to clipboard operation
grav-plugin-shortcode-gallery-plusplus copied to clipboard

List images in directory

Open briceambrosiak opened this issue 2 years ago • 5 comments

Instead of listing images manually, it would be nice to be able to put a folder and all images in the folder would be displayed in the gallery. See this plugin: https://github.com/michaijtsma/grav-plugin-dir-gallery (but yours is nicer)

briceambrosiak avatar Aug 21 '23 14:08 briceambrosiak

I agree. This would be a very nice addition. Thanks!

s22-tech avatar Feb 28 '24 00:02 s22-tech

This is already possible if Twig is used

[gallery]
{% for image in page.media | sort %}
  {{  image | markdown }}
{% endfor %}
[/gallery]

Then "Process Twig First" must be enabled in the Advanced Tab.

dbuchhorn avatar Apr 28 '24 09:04 dbuchhorn