Skip Navigation

[Resolved] How to show repeatable fields that are in a repeatable field?

This support ticket is created 2 years, 10 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 5 replies, has 2 voices.

Last updated by Shane 2 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#2269341

Tell us what you are trying to do?
I have multiple Locations per DayScheme which have multiple Workshops.

Both Locations and Workshops are repeatable fields inside the DayScheme, but Workshops is a repeatable fields within the Location repeatable field.

How do I show the Workshops in a Toolset Template? I get the Locations to show, but I can't seem to make a View with the Workshops.

#2269763

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Michiel,

Thank you for getting in touch.

Based on your query i'm assuming that you have a Repeatable Field Group and within that RFG you have a repeating field correct?

If so then the correct way to display this is by:

1. Create a view that will display the Repeatable Field Group on the template of the post type that the RFG is assigned to.
2. Inside your View that displays the RFG add the Repeating Fields block to the view.

This will allow you to display the Repeating Fields that belong to the Repeatable Field Group.

Please let me know if this helps.
Thanks,
Shane

#2269809
Screenshot 2022-01-18 at 21.37.27.png
Screenshot 2022-01-18 at 21.21.37.png

Hi Shane,

How can you have a repeatable field? Aren't all fields within an RFG repeatable fields? What I need is these examples:

DayScheme 1
+ Location A
- Workshop I
- Workshop II
+ Location B
- Workshop IV
+ Location C
- Workshop V
- Workshop VI

DayScheme 2
+ Location A
- Workshop I
- Workshop II
+ Location D
- Workshop III
- Workshop IV

First image is the implementation of the Post Field Group. Second of the Template.

It seems that RFG's withing RFG's are not possible to show in a View/Template. Should I create a Location type first, show that in a View and then the Workshops seperately as RFG's?

#2270485

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Michiel,

I see what you're saying now. You have Nested Repeatable Field Groups.

In this case you will need a nested view. Unfortunately if you're using the Blocks setup for view you won't be able to do the nested setup to display the inner most repeatable field group.

Your setup will look something like this below.
-- Content Template
-------View 1 with Parent Repeatable Field Group
------------View 2 with Child Repeatable Field Group.

Essentially to display the child RFG you will need to create it and then add that view to the Parent Repeatable Field Group within the <wpv-loop> tags.

Please let me know if this helps.

Thanks,
Shane

#2271157

How do I create a new View from outside the Block editor? When I try to create a new View below the Parent view, it doesn't allow me to select the Child RFG. And I can't create a new View from the Toolset menu. I remembered there was an option to show the Views in a previous version of Toolset, but I can't find that setting anymore.

Any help is much appreciated!

#2271545

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Michiel,

If the classic view hasn't been enabled you can enable it by going to Toolset -> Settings and scrolling to Editing Experience. From there I recommend that you select " Show both the legacy and Blocks interface and let me choose which to use for each item I build".

This will allow you to have access to the classic editor as well as the block editor. From there refresh the page and go to Toolset -> Views.

Thanks,
Shane