Skip Navigation

[Resolved] Create Repeating Field Gallery

This thread is resolved. Here is a description of the problem and solution.

Problem:
How can I add a Gallery made of Images uploaded to Toolset Types Image Fields?
Do I need to add one new image field for each of the images in the gallery?

Solution:
You can use a Repeating Image Field, then add images to a post and use the Repeating Field/Gallery block of Toolset Views/Blocks to output a gallery or else of those images, you can control the style and output in the block settings

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 8 replies, has 2 voices.

Last updated by brianN-3 5 years, 2 months ago.

Assisted by: Beda.

Author
Posts
#1509765

Hi again Support

Is there no option in TOOLSET for adding an image gallery ? In ACF there is a field called gallery and using that you can add multiple images and even arrange them.

Does TOOLSET not offer a similar feature ? If Not how do I manage galleries in TOOLSET ? do the users really have to upload each image one by one ?

Just now Im building the Custom Fields and after I need to build a Form for the frontend

Hope you can point me in the correct direction as I have not been able to find any samples

#1510129

The best (in my opinion) solution so far is the Repeating Field / Gallery block that Toolset Views or Toolset Blocks provide.

You'd have to create a Custom Field (repeating) of type "image" and add several images each post where you want to create galleries for.
Then, with the Block "Repeating Field / Gallery block" in a Content template or View that displays those posts you can display all those images in a highly customizable gallery, from masonry up to simple slider.

This feature is closer described here https://toolset.com/documentation/user-guides/custom-content/create-image-galleries-using-toolset-and-custom-fields/
Repeating Fields will also work nicely in Toolset Forms.
But there the preview won't be a masonry grid or else customizable 😀
It will just be an upload "preview", and after submitting the post, the gallery block will display those images as you set in the above-described steps.

Please let me know if this helps?

#1510283

Hi again

Thanks for your reply ... I did see some people mention that as a solution, but it seems a little limited that admin has to select each image one by one ... if you have 10 images that will take long time and be a show stopper for the customers, when they have to add the galleri.

Note Im not using blocks for frontend but Elementor

My plan was to use the TOOLSET forms for the frontend interface where the user create the galleri... Is there no way they can upload all images at the same time and then it is added to the gallery as "individual" images like you show ?

Do you know of any 3-party addon that can help ?

// Brian N

#1510299

Well, there is no plugin I know of that you can add several images by not selecting them (or selecting just one).
When you build a gallery you will need to specify somehow what images to use, and the block does exactly that.

You can easily add as many images at once as you want when using the field to upload images.
They will (the images) be pushed to the repeating image field at once.

So adding 10 images costs the time WordPress takes to upload 10 images, that is unavoidable, but you don't need to upload 10 different images, that is the exact point of a repeating field, that you do not need to add many items but upload as many images you want, at once, and it creates the repeating instance for you (you can try this by simply selecting more than one image when adding new images to the repeating fields)

This is why we created the repeating fields and gallery block.

#1510429
Skærmbillede 2020-02-15 kl. 13.49.59.png

You do off course have to select the images you want in the gallery, but you can select them at the same time on a gallery field like the one ACF offers and you can even reorder them easy efter you have selected them

Almost all modern galleries work this way - even if you try to add a gallery inside WordPress Media. So it seems strange that in yours user have to click add again and again to select each image one by one - do I do something wrong here ? Or have I misunderstood what you mean ?

Here is a quick samplepage I made using your plugin and the instruction you showed me
hidden link

#1510443

You can do just that in with Toolset.
You can upload many a time, and also reorder them both in the posts edit page or toolset form to edit such posts.

You can see that on the screenshot you provided above as well.
The arrows show the reorder options

If you use the "Use the WordPress Media Library manager for image, video, audio, or file fields" setting in the respective Forms, you can even choose already uploaded images, and they'll have a preview.

I am not sure why you mention the user needs to add them one by one, as it is a repeating field it can be populated with many items at once.
Do I miss something in the setup?
Maybe if I can see it in the backend of the site, if above does not help, I can spot the issue.
(I can't see the form as I am logged out)

#1510523

Aha my mistake

you are right ... ordering is possible 🙂

does it only support multi select if we use WP media option ? As I dont like that we have to show the WP backend to normal users...

// Brian

#1514347

Yes, that's right:
Only with the WordPress Media Library manager for image, video, audio, or file fields you can choose many items at once

It's not that much of WP Backend, it's just the media, and that can be controlled also in Toolset > Access if required

I hope this helps!

#1520523

My issue is resolved now. Thank you!