Hello,
I am moving articles from Joomla 3 to Grav 1.7.
In Joomla, in the content of the article I have the plugin code: {gallery}/gallery/2021/28-09{/ gallery}.
The code loads all images from the given location.
In Grav, I would also like to replace it with code that will display these images (in the exported .md files, I add field: gallery: 'gallery/2021/28-09' to the item.md file, and delete string: {{gallery / 2021 / 28-09} }.
I copied all the images to the user / images directory and they are in their own subdirectories.
I don’t know how to get all files in this location user/images/gallery/2021/ 28-09 in the .twig file.
Any idea how to get an array of these image files? Maybe you can generate such a gallery in some other way?
So the key is to put the files inside: user/pages/gallery, NOT user/images/gallery?
Do I understand correctly?
If I have image arrays it will basically generate any HTML structure for itself.
At the moment, I altogether changed it so that at the time of exporting from Joomla, it copies these files to my directories user/pages/blog/slug with the .md file (probably the standard place in CMS Grav for graphic files attached to the article).