Skip Navigation

[Resuelto] Repeatable Field Groups

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem: Why use RFGs instead of child posts? My site visitors cannot edit RFGs.

Solution: Tighter integration between RFGs, Views and Forms is on our roadmap. Right now they do behave very much the same. You can edit RFGs using an edit post Form under certain circumstances - only one row can be edited at one time, nested RFG are not supported, and the RFG must be managed in a Form that is separate from the main post.

This support ticket is created hace 6 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Darryl hace 6 años, 2 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1104660

I was setting up a repeatable field group and hit a brick wall when I wanted to give website visitors the ability to edit the repeatable fields.
I ended up going with a standard parent child relationship because I was able to do everything I needed with that. Which brings me to my point, why even have repeatable field groups? It wasn't any easier to set up and in my head it worked exactly the same.
I'm sure I'm missing something here but if I could move the admin menu item for child post types as a sub item to their parent, that would be the best solution for me.
Is there a feature of RFG that I'm overlooking?

#1104853

Which brings me to my point, why even have repeatable field groups?
Right now, repeating field groups do behave very much like child posts in a parent/child post relationship. In fact, RFGs are connected to their corresponding post in a parent/child relationship. RFGs are not listed as a post type, but they are technically handled as such. Our roadmap includes plans to make RFGs more closely integrated with the parent post. That means tighter integration in Views searches, so you can search for parent posts by fields in related RFGs. It also means tighter integration in Forms, so you can manage RFGs along with their parent posts in a single Form. Right now, those features are still pending as RFGs are still relatively new.

I'm sure I'm missing something here but if I could move the admin menu item for child post types as a sub item to their parent, that would be the best solution for me.
This isn't an option in Types right now, but there are 3rd-party plugins that claim to be able to manage wp-admin menus. You might have luck manipulating these menus using another system. You can also request this feature by creating a new ticket in the forum using the "Suggest an improvement" option.

Is there a feature of RFG that I'm overlooking?
One feature I can think of is that a RFG can include a nested RFG, and you can manage multiple nested RFGs from within the main parent post. That's not really possible with nested child posts, where you would only have the ability to edit the custom fields of the top-level child post from within the parent post editor.

I was setting up a repeatable field group and hit a brick wall when I wanted to give website visitors the ability to edit the repeatable fields.
In simple cases, your Users can modify RFGs on the front-end now using Edit Post Forms. The stipulations are:
- You can only edit one row of the RFG at once time, in one Form.
- Nested RFGs are not supported.
If you'd like to try this out now, the process is similar to setting up an edit post Form. Create a new Content Template or Template Layout and insert an Edit Post Form. This Form should be set up to edit the correct RFG type. Create a View of this RFG filtered by post relationship, set by the post where this View is shown. In the Loop, insert custom fields from the RFG and an Edit Post link using the Fields and Views button (this will be moved into the Forms menu in an upcoming plugin release). In the popup dialog, select the CT or Template Layout that includes the edit post (RFG) Form. Then insert this View of RFGs in the template for the parent post. You will see a list of RFGs with a link to edit each row independently. Our goal is to clean up this process so it's more like the RFG editor in the wp-admin post editor.

#1105563

Thanks Christian, that removes a lot of confusion.