Skip Navigation

[Resolved] Can layout be used in views for repeatable group fields?

This support ticket is created 6 years 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+01:00)

This topic contains 8 replies, has 2 voices.

Last updated by Himanshu Agarwal 6 years ago.

Assisted by: Nigel.

Author
Posts
#648511

Tell us what you are trying to do? I am checking repeatable group fields in a beta version of types, views & layout.

#648531

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

Hi there

I'm not quite sure what the question is.

If you create a repeatable field group with Types and you add some data to a post, then when you want to display the fields from the repeating groups for the post you would need to create a View where you select the repeating field group as the Content Selection.

You would then need to add a Query Filter to specify which post the fields come from. At the moment that means adding a "post relationship" filter and then choosing the repeating field group, but this will be made a little clearer in the stable release.

You can then output fields in the Loop Output editor much like you would any other View.

If you want to display this View in a Layout you can.

If you want to design the View output with a supported page builder you should be able to.

#648633

I was checking the beta version of Views, Types & Layout and see the repeatable fields and good features. Kudos to toolset team.

However, there isn't an option to layout in views-page so that repeatable fields can get designed by layout itself within views.

Means, if we can get "layout" within "views" then repeatable fields can also have layouts.

#648849

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

If I understand you correctly, what you are suggesting—that the output of a View can be designed using Layouts—isn't possible anyway, irrespective of whether the View is used to output repeating field groups.

So, no, it is not possible to design the output of repeating field groups using Layouts.

As part of the work preparing for the shift to Gutenberg we will be re-thinking the future of Layouts, and designing Views Content Templates with Layouts is an option that will be considered.

#651811

See the image here - hidden link

This is where I was looking for a layout option.

#651814

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

But that screenshot looks exactly the same as for a normal View. There are normally no layout options available there, so I'm still not sure what options you expect or want to see.

If you scroll down a little further to where the Content Template is you would see a button to edit with a page builder if you have a supported page builder installed.

Or you could go to Toolset > Content Templates and edit the same template from there, when, if your theme supported integrated theme options, you could set the theme options (e.g. no sidebar).

If you mean something different by layout options, what do you mean?

#651821

Sorry for the confusion.

I am suggesting a feature request here.

The option to have a layout edit at the image shown above, so that we can design the repeatable fields directly via layout. But currently, we have to design repeatable fields by the content template and cannot do by layout.

#651822

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+01:00)

OK! Understood. Thanks for clarifying.

Then, as I mentioned above, we are considering being able to design Content Templates with Layouts, and I think if implemented correctly that would mean being able to do what you want.

This is a discussion we are going to have in a few weeks when Types 3.0 is released, and I'll be sure to raise your specific use-case then.

Thanks for raising the issue.

#651825

Currently, we aren't able to find a use for layout as it is same as normal page builder.

However, we have to use a content template every time and it would have been so much great (easy) to have layout and content template integrated somehow. OR we can get an option to use the layout where content templates are being used.

And, all our requirements are mostly covered with types and views.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.