ProcessWire icon indicating copy to clipboard operation
ProcessWire copied to clipboard

A FieldsetTab field with "Open in modal" option enabled doesn't appear if added to Repeater

Open jlahijani opened this issue 9 years ago • 3 comments

How to reproduce:

  • create FieldsetTab field
  • enable the modal option
  • create Repeater field
  • assign FieldsetTab field to Repeater, along with some other general fields between Open/Close of FieldsetTab field
  • assign Repeater to a Template
  • create a Page with the Template containing the Repeater
  • Click Add New to add a new Repeater Item
  • the FieldsetTab field will not appear

Obviously this is a unique field setup and perhaps hits some limitations with ProcessWire.

jlahijani avatar Jul 02 '16 00:07 jlahijani

The FieldsetTabs are part of the underlying page structure and not intended as part of the form. We let you define them in the template, so that you can extend beyond the default "Content", "Children", "Settings", "View" tabs, as it's often a convenient thing to do. But they are something that has to be defined with the initial generation of the page, rather than something that can be added on after via repeater items or something. I think what you may be looking for would be a different field type, like some kind of inline tabs that could go within a repeater item, or something of that sort. Some kind of inline tabs thing like that maybe worthwhile for us to add at some point.

ryancramerdesign avatar Jul 08 '16 16:07 ryancramerdesign

Yea that sounds like a good idea. Rather than creating a new fieldtype, would it be possible to have FieldsetTabs automatically act as inline tabs when inserted inside repeaters or would that be going against the grain in terms of FieldsetTabs true use case?

jlahijani avatar Jul 20 '16 16:07 jlahijani

Bringing this up again, as it hasn't been answered and I was looking into how to do this myself. Is that something that needs a new Fieldtype or would it be possible to let FieldsetTabs act as inline tabs inside repeaters?

MrSnoozles avatar Mar 10 '19 17:03 MrSnoozles