Hi there,
I want to create a module that wraps a simple JavaScript slider. Each ‘slide’ of the slider should use three pieces of configuration: title, image, target URL for when the user clicks the image.
When I use the block attachments form, I get a form “for free” that has the ability to add & remove attachments. The attachments can give me the image to use in the slider. However, I need the ability to override the title and target URL on a per-page basis.
What’s the best option to implement something like this? All of the examples of new blocks that I can find seem to use a fundamentally “flat” layout for their data; they just store primitive values as in o:block[__blockIndex__][o:data][foo] = "bar"
. But to represent this configuration, I would need to store arrays; is there any existing module that does something similar to this?
Thanks!
Dave