heldercervantes Posted June 7, 2022 Share Posted June 7, 2022 Has anyone thought of the idea of a Fieldset where you can select the inner fields like you do on a repeater, but in the fieldset itself instead of the page template? This would be super useful for standardised reusable groups of fields, or in my case, content block building. EDIT: Well, that's basically the Combo ProField https://processwire.com/store/pro-fields/combo/ - Time to pay up ? Link to comment Share on other sites More sharing options...
Robin S Posted June 7, 2022 Share Posted June 7, 2022 FieldsetPage fits that description and is part of the core: https://processwire.com/blog/posts/processwire-3.0.74-adds-new-fieldsetpage-field-type/ 1 Link to comment Share on other sites More sharing options...
heldercervantes Posted June 7, 2022 Author Share Posted June 7, 2022 8 minutes ago, Robin S said: FieldsetPage fits that description and is part of the core: https://processwire.com/blog/posts/processwire-3.0.74-adds-new-fieldsetpage-field-type/ Awesome, thanks for the tip. Going to try it out right now Link to comment Share on other sites More sharing options...
bernhard Posted June 7, 2022 Share Posted June 7, 2022 54 minutes ago, heldercervantes said: for standardised reusable groups of fields, or in my case, content block building. Are you talking about a page builder? Then I guess FieldsetPage will not work for you... Or what do you mean exactly with "standardised reusable groups of fields"? Link to comment Share on other sites More sharing options...
heldercervantes Posted June 7, 2022 Author Share Posted June 7, 2022 24 minutes ago, bernhard said: Are you talking about a page builder? Then I guess FieldsetPage will not work for you... Or what do you mean exactly with "standardised reusable groups of fields"? By "standardised reusable groups of fields" I mean something like what's described in the Combo ProField. FieldsetPage works nice, or at least improves my current solution, which goes something like this: So basically I'm using a repeater, a block type selector and a bunch of fields (this screenshot is from my last project). The block type selector is a custom module I made based on FieldtypeSelectFile. I just added a way of assigning thumbnails to illustrate what php file you're selecting. This works pretty well, but something that's a pain in the ass is that I have to dump all fields that every content block may use in the same repeater, and then for each of them, make visibility depend on the block type's value. Also, I have to order the fields and use names that work on any block type that uses them, which becomes a bit of a puzzle sometimes. With the FieldsetPage, I at least have things more organised, and I can make adjustments like having fields sorted as it makes more sense for each content block, override titles and descriptions and whatnot. I'm liking this approach. On a first glance only the required fields are still a bit weird to set up, but it's a nice improvement from my previous solution. 1 Link to comment Share on other sites More sharing options...
bernhard Posted June 7, 2022 Share Posted June 7, 2022 Is there a reason why you are not using RepeaterMatrix for that purpose? Link to comment Share on other sites More sharing options...
heldercervantes Posted June 7, 2022 Author Share Posted June 7, 2022 Initially to keep it core, but now I wouldn't replace the thumbnails grid for RepeaterMatrix's UI. It would make everything less intuitive. Link to comment Share on other sites More sharing options...
bernhard Posted June 7, 2022 Share Posted June 7, 2022 This post shows the latest UI of RepeaterMatrix. There has been some improvements lately ? Link to comment Share on other sites More sharing options...
heldercervantes Posted June 7, 2022 Author Share Posted June 7, 2022 So... I've been reinventing the wheel this whole time ? Excuse me while I go hang myself. BRB. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now