It's that time again! Now that awesome CB Template Changer 4.0.0 and its awesome Template Builder functionality has been released it's time to start on the next thing. This time we're diving into a NEW project entirely. We're calling it CB Field Groups. Check out the details below.
The idea behind CB Field Groups is exactly as the name implies. It's to group fields together. You maybe wondering why you'd need this since you can just move fields to be next to each other, but that's just a minor part of it. CB Field Groups brings our CB Repeat jQuery usage as seen in backend (all those + and - minus with Add Row/Add Rows buttons are CB Repeat) to the frontend. Instead of just jabbering about it lets take a look at it below.
This is on frontend in a users profile edit. What it does is offer a new Field Group fieldtype. You'll be able to select from your existing fields to be included in the field group. You can then configure how many times you want to allow this field group to repeat. This is extremely handy for things like providing multiple phone numbers or multiple addresses without having to have multiple sets of fields. Once saved they'll display on your profile like they would any field one after another. All of this is using the fields normal configured behavior since it's just taking your existing fields, grouping them, and allowing for unlimited reuse of them. Check out the display below.
This is a very early implementation. Due to the way some integration plugins behave and how some fields storage behavior behaves the field grouping usage may not be available to all field types and grouped fields will have their conditions, privacy controls, and ajax usages disabled (you can still apply all 3 to the actual field group field; just not the fields the field group field is outputting).
There's still a lot of work ahead, but I hope this will be able to bring some new usability to your site in the future.