Hi there! I have been trying to figure out how to make inline galleries that appear within the main content area. I would love it if they could be as simple to make (while using the panel) as inserting a single image is. This solution needs to be applicable for any blog article page, and I do not know how many galleries will be needed for each article: some many need several, others none. But they will always need to appear within the text area, with text before and after them. For this reason I prefer a kirbytag-like approach over a page-builder style approach.
As far as file organization goes, I am have two ideas, and am equally partial to either at the moment:
-
Store all the gallery images adjacent to the actual blog article page so they appear in sidebar’s file area. Then use a custom kirbytag to call specific images per slideshow, and somehow splice them into an array based on comma-separation. So using the custom kirbytag within the panel text may look like (gallery-tag: image1, image 2, image3) and then later in the text, another gallery might be called as such (gallery-tag: image4, image5, image6, image7, image8).
-
…or… Create a subpage per gallery, as children of that blog article page. Each gallery subpage will hold its own images. The custom kirbytag will reference the name of the gallery subpage when invoked, and within the kirbytag code, know to access the images as an array. In this case, using the custom kirbytag within the panel text would be more like (gallery-tag: Gallery1) which would still result in all 3 of the associated images being called.
My problem is building a kirbytag that does either of these! In the documentation, it only shows how to build a kirbytag that acts as a link. I haven’t been able to figure this out, or find other forum questions specifically citing how to do an inline gallery from scratch, so am hoping it’s possible! Can anyone help or point me in the right direction?
Many thanks in advance!