Well, it's started. I'm looking for potential other use cases that could be used if it could make sense.
This may take a while due to my limited available contrib time.

CommentFileSizeAuthor
#5 views_megarow.zip32.35 KBbvakulin
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

    1 hidden branch
  • 2492003-drupal-8-port Comparecompare

Comments

ar-jan’s picture

Any idea what Commerce 2.x is using in Drupal 8 instead of views_megarow?

And is the port to D8 going to happen?

artusamak’s picture

They don't at the moment.
I started some poc but didn't arrive to something conclusive.
I'd like to rely on the form mode to open a link as a derivate of a dialog for each row. That would let the form being configurable per entity.

kiss.jozsef’s picture

Hello, any ideas if something similar exists in drupal 8 ? or does this have a drupal 8 port ? need it for view inline editing per rows

oakulm’s picture

You can do this with views, some js and template rewrites.

Create your view with table formatting. Add fields and one extra field where you rewrite the output for the toggler (see js code).
Create js-file along the lines of:

(function($, Drupal) {
  $('.view-table tbody tr .column-you-want-to-expand').each(function() {
    // Move table column to next row and remove the original.
    $(this).closest('tr').next('tr').append('<td colspan="6">' + $(this).html() + '</td>'); // I have 6 columns so colspan = 6.
    $(this).remove();
  });
  // Show related content under the row.
  $('.view-table .row-toggle').click(function() { // this toggles the visibility class.
    $(this).closest('tr').next('tr').toggleClass('collapse');
  });
})(jQuery, Drupal);

Than add new table rows for your table in views table template:

<tr class="content collapse">
</tr>

You may want to add the javascript as a library in the views table template also. This is a really rough implementation but maybe this will help someone to move forward. It's really not that much work.

bvakulin’s picture

StatusFileSize
new32.35 KB

Hi to all.
I prepared a working module for Drupal 10.x versions.
Need tests and feedback.

bvakulin’s picture

Assigned: Unassigned » bvakulin
Priority: Normal » Major
Status: Active » Needs review

bvakulin changed the visibility of the branch 2492003-drupal-8-port to hidden.

artusamak’s picture

Hi, thank you for your proposition, i've granted you maintainership access to the repository. I'm not maintaining it anymore so be my guest to fix it and bring it forward. ;-)

andrii momotov’s picture

Assigned: bvakulin » Unassigned
Status: Needs review » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.