Been experimenting with kirby the last couple of weeks, I guess I’m still fairly new to PHP, but loving the possibilities and the CMS overall!
I’ve been fiddling with the idea of making an implementation of the Slick Slider by Ken Wheeler (http://kenwheeler.github.io/slick/), I just like how it works and its syntax.
The thing is, I would like to assign not only images, but text content (paragraphs) or a project credits panel at the end (generated via custom fields) to each slide. So far I have found many other slider implementations that use foreach loops on image folders, some of them taking metadata and assigning it over the image but nothing that alternates text and images in any given order.
I guess I’m getting close to the solution, but I would love if someone could point me in the right direction toward getting this to work, so far I have thought on two possible approaches:
The first one would be making an entire folder for each project, upload the images/text/credits in the desired order and loop through that, but I think It would not be user friendly at all.
The second one would be making a custom post-type using for example a version of Tim Ötting’s builder (see: Plugin for an extended structure field with more then one kind of field set), but from there I get lost on how to exactly structure the loop between content types (maybe because a lack of knowledge in PHP hahaha). Anyway, I think this would be clearly more user friendly when creating content.
An example of what I’m trying to achieve (in this case the order is “image-image-text-image-credits”, also it’s just an animated demo):
Any tip would be greatly appreciated!
Thanks in advance,