Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to expand/collapse a repeater item's children (and grandchildren, etc.) items #474

Closed
jlahijani opened this issue Jan 15, 2023 · 2 comments

Comments

@jlahijani
Copy link

jlahijani commented Jan 15, 2023

Repeaters currently have Item Depth and Family Friendly capability.

Family friendly allows you to drag a repeater item and move it's 'child items' with it, which is very convenient.

In the same spirit, would it be possible to develop expand/collapse capability so that if you "collapse" a repeater item, it's child items become hidden, and if you "expand" they re-appear? This is basically the same concept as code-folding in a text-editor (or folders within folders... you get the idea).

This would require some visual UI adjustments to indicate expand or collapsed state.

It would also be excellent if the expand/collapsed state was stored and maintained yielding the same state if you came back to the page at a later time.

@szabeszg
Copy link

I think this request belongs to the Repeater Matrix "Family settings" feature set that's been planned for more than a year, see:
https://processwire.com/blog/posts/new-repeater-and-repeater-matrix-features/

What’s next?
Still on the to-do list for Repeater Matrix is to add the ability to control what item types are allowed where, kind of like the Family settings on page templates.

Currently, matrix item depth is a some sort of "half baked" feature, I would love to see it receive full fledged parent/child relationship treatment, a long with features implemented by Robin:
https://processwire.com/modules/restrict-repeater-matrix/

Right now, admin users are prone to all sorts of mistakes they can make while working with complex repeater setups. Any new features that help to avoid any of them are welcome.

ryancramerdesign added a commit to processwire/processwire that referenced this issue Feb 14, 2024
…sswire-requests#474 which enables open/close for family groups of repeater items together, so that when using depths, and you open (or close) a repeater item, items that are visually children of it also open (or close). To enable, see the field "Details" tab setting in "Repeater depths/indents" > "Open/close items as a family?". Also added a configuration setting that enables you do disable the automatic scrolling to newly added items, as requested by @hiboudev
@ryancramerdesign
Copy link
Member

Thanks @jlahijani I have added this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants