after working with kirby the first hours i am still impressed…
Now i have the question:
We have several pages inside the Kirby Installation, inside the pages are images placed, with blueprint i added “tags” to the images.
Is there a chance to filter all images from Kirby with the tag i receive from the URL with “imagetag:XYZ”?
So i can setup a gallery page where dynamically the images with the tag i choose are placed.
Is there also a chance to get all tags in Kirby i am using? Like all active tags?
Do you want a gallery per page, or a gallery for the entire site that shows all images (which are in different pages)?
In case of the latter you’ld need to create a collection of images and add all the images (from the pages you’ld like to have the images from) to that collection…
@texnixe you are really really helpful. Always an answer for the questions.
@bvdputte i mean i am using images on several pages. Now i tag the images on those several pages.
There is a link under (for example) gallery “show all images with ‘apple’”. Then i see all images of the entire site which have the tag “apple”.
Ok, then you should be able to achieve that by creating a collection with $site->index()->images() and then use the filter on that as @texnixe mentioned.
Sorry to ask this awkward question… but how do i create a link to a page with a paramter in templates? I think i am to “dump” to search or find the answer.