c5 v5.6 related: Block Creation: Multiple set of group of fields in one instance.

Permalink
Hi Guys,

I badly need your help. Can you at least direct me on how to create a block where you can add multiple set of group of fields in one instance.

Ex. flow of the block. Lets call it image gallery
Click Add Image
--Set 1 (image field (al->image), image field hover (al->image), image name(textbox))
Click Add Image
--Set 2 (image field (al->image), image field hover (al->image), image name(textbox))
Click Add Image
--Set 3 (image field (al->image), image field hover (al->image), image name(textbox))
Clive Save.

In one instance of a block you have 3 images with hover and name fields.
I know ajax will be used for this but I'm having a hard time to implement it.

Any help would be appreciated!

Thanks,
J

 
JohntheFish replied on at Permalink Reply
JohntheFish
If its a fixed number of image fields, use designer content to boilerplate it.http://www.concrete5.org/marketplace/addons/designer-content/...

If its a variable number of fields, put your images in a fileset and your block can simply loop through the fileset. There are examples in the list files from set addon
https://www.concrete5.org/marketplace/addons/list-files-from-set/...
https://www.concrete5.org/marketplace/addons/image-list-templates/...

Or you could use designer content pro to boilerplate a filepicker interface and listing.

If you want to create a block from scratch with a variable number of images, this howto can help with storage options.
https://www.concrete5.org/documentation/how-tos/developers/save-and-...

Finally, you could also use my Magic Data and Uber List addons to create a list of files and format their display. https://www.concrete5.org/marketplace/addons/uber-list/...