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.
Panels node and user edit form overrides are inaccessible with views megarow installed.
Steps to reproduce:
1. install views megarow.
2. Watch as your panels overrides burn.
Views megarows aren't all of drupal, so it's somewhat greedy of this module to claim these forms for itself. Couldn't it be done more intelligently, leaving panels users the option of overriding node/%/edit forms outside megarow?
Comments
Comment #1
muntjac CreditAttribution: muntjac commentedThe reason this is a bug and not a feature request: any site with overrides for these forms in panels will break without warning the moment this module is installed.
Comment #2
dobe CreditAttribution: dobe commentedI'm experiencing this as well.After digging into the issue further. By default yes the module disables the node/%/edit and user/%/edit form's; however you can disable this within the sites Configuration > User interface > Views Megarow configuration
The main issue I was running into is that views megarow functionality rely on the template file getting overridden properly. In my case I was overriding some of these template files which didn't have the attributes showing on the tr specifically data-entity-id. After moving over some code from the megarows template the my custom one everything is working. What a cool functionality.
Comment #3
millionleaves CreditAttribution: millionleaves commentedWith reference to #1, perhaps there could be a warning to the user if Panels is detected when the module is enabled.
A warning on the module page would be useful too.
Comment #5
ArtusamakThank you for this great feedback. I added a message on the project page and a warning when the module is enabled if Page manager is already activated.