Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have noticed while migration that there exists theme function in sub modules for grouping the fields. Personally i don't like that for two reasons:
1.) Template file (tpl.php) based approach is much cleaner and that is the future.
2.) It could be handled by Field Group
Field Group has a nice api which accepts "suggestions", so its not hardcoded. It could be overridden in ui as well as my favorite - could be exported using features.
What do you think guys?
Comments
Comment #1
juliangb CreditAttribution: juliangb commentedWould this be possible as an optional dependency rather than mandatory?
Comment #2
D34dMan CreditAttribution: D34dMan commentedYes. All we need to do is implement a hook. No explicit function call required.
Comment #3
juliangb CreditAttribution: juliangb commentedI'm in favour of this then.
I use field group on a couple of sites and it works quite well.
Comment #4
juliangb CreditAttribution: juliangb commentedIs there a specific patch that will go against this issue, or will it be incorporated into other changes?
(Just wondering if we can close this issue to clean up the queue?)
Comment #5
D34dMan CreditAttribution: D34dMan commentedField group support incorporation is already going into the field migration. I was quite annoyed at the broken state ( as it looked ) after the fields where migrated.
So yes, you may please close this issue as the question have been addressed in #3
Comment #6
juliangb CreditAttribution: juliangb commentedGreat. I saw that you've committed some support for it to the feature/pmperson branch.
Comment #8
juliangb CreditAttribution: juliangb commented@D34dMan What would you think about using vertical tabs instead of fieldsets?
(I'm not greatly fussed either way, but thought it might help make those pages cleaner).
I've been working with the feature/pmperson branch quite a bit this afternoon.
Comment #9
D34dMan CreditAttribution: D34dMan commentedFor official support:
Yes, tabs would be better at organising contents and making it look cleaner. Should we create a different vertical tab group or reuse the existing one ( which drupal provides ).
----
On unofficial lines.
I am not a fan of tabs when it comes to forms presenting related information. It tends to hide the information from the user. Making visual summary impossible at one glance.
This is why i use Fieldgroup Table. I am ready to give support in for field group table theming in PM Vista since its something i would use.
Comment #10
juliangb CreditAttribution: juliangb commented@D34dMan
What is the status of this issue, and is there anything else that needs to happen before it is closed as fixed?
Comment #11
D34dMan CreditAttribution: D34dMan commentedthis can be closed. Field Group support is already there in 2.x branch and is an optional dependency.