Skip Navigation

[Gelöst] Views display an image galleries in search results

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

We would like to display an image galleries with arrows (mini slideshow style) in the views search results by using repeatable image field.

Solution:

You can follow our document to setup the custom repeating field group, and display it as a slider with Views plugin

Relevant Documentation:

https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/

This support ticket is created vor 6 Jahren, 6 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Dieses Thema enthält 8 Antworten, hat 3 Stimmen.

Zuletzt aktualisiert von leilaG vor 6 Jahren, 6 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#907554
gallery-view.png

We would like to display an image galleries with arrows (mini slideshow style) in the views search results (Screenshot attached) The images do not need to open.

I have created a repeatable image field.

How would we do this?

#907698
View Query for RFG.png
Pagination for RFG.png

The easiest would be to create a View, where you create a slider of those repeating fields.
Then, that View can be used in the View that shows the actual grid of your posts.

But it's cumbersome because Toolset Repeating Fields are not really intended to build galleries.

Easier if you create a new Post Field Group, assign it to your post type, and then add a repeating field group.
In the group, add your image Field.

Then, create your Posts, and each post, save as many repeating groups items as images in the slider.
Each item will be one image.

After, create a View, and query the new Repeating Group belonging to the Post in the Loop.
Then, as well add a pagination by one, updated with an AJAX call.
(See Screenshots)

Then, create a View that queries the actual posts.
There, in that View's loop, insert the above-created View.

This will now create a list of Posts, and for each post, a slide of the images you uploaded as repeating field group to it.
If you insert this into a page, you should see a list of posts with each a slider of images.

Styling can be added later to define the size and look of that slide

DOC:
https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/
https://toolset.com/documentation/user-guides/using-a-child-view-in-a-taxonomy-view-layout/

#908907
noitems.PNG

Thanks Beda, I have followed the step, but I am getting "No items found" for the gallery images - versteckter Link (Bottom of page)

Also if I create a CRED form for this, will users be able to add the images in the form?

#909185

Hello,

Please check these, you are following our document to setup the slider view:
https://toolset.com/documentation/getting-started-with-toolset/creating-and-displaying-repeatable-field-groups/#displaying-repeatable-field-groups

If the problem still persists, please provide a test site, and fill below private detail box with login details, I need a live website to test and debug, thanks

#909223

Thanks for the details, I can see the problem in your website, in case it is a compatibility problem, please try this:
1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a database dump file (ZIP file) of your website in below private detail box, also point out the problem page URL, I need to test and debug it in my localhost, thanks

#909305

Thanks for the details, I have done below modifications in your website:
1) Create a new repeating field group "galleries group" with image field:
versteckter Link

2) Edit the post
versteckter Link
Setup the image field values in group "galleries group"

3) Edit the View
versteckter Link
filter by:
Select items from the galleries group group that are a related to the current post in the loop.

See the result in front-end:
versteckter Link
the image slider in post "Pod space"

For your reference.

#909351

Thank you so much for the steps, we had some issues with our server earlier today, and the staging site was copied over again, so I lost the changes that were made. Apologies.

I am trying to complete the steps on the live site now, would you be able to send some screen shots of step 2 and 3 or re-do the changes on the staging site?

Thanks Again for your help and support.

#909633

As your request, I have done the changes again on the staging site:
1) Create a new repeating field group "galleries group" with image field:
versteckter Link

2) Edit the post
versteckter Link
Setup the image field values in group "galleries group"

3) Edit the View
versteckter Link
filter by:
Select items from the galleries group group that are a related to the current post in the loop.

#910521

Great!! all working now, thank you so much!