How to insert a View inside other View as the last row of the parent View?


Below are the modules. I hope any of these help you to solve this :

  1. Node Embed

Node Embed provides an input filter for CKEditor integration allowing a content editor the ability to embed the rendering of nodes within the body/fields of another node. This uses a View to allow for the browsing/preview/selection of a node to embed and provides a set of template suggestions that allow for the detailed control of node rendering when in embedded mode.

  1. Views Field View

This module allows you to embed a view as a field in a view. A new field handler is made available, so this can also be used in area (header/footer/empty) handlers as well as rows.

This view handler can accept arguments from fields of the parent view using tokens and pass them into the child view for each row. Raw or rendered token values can be used, as well as static values.

Inserting Views - Read the content & comments. I hope this may help.

Use views_field_view module. This module help you to embed a view as a field in a view.

in your view settings, middle column add in footer a Global: View (Views field view). Embed a views_field_view field in an area. This can also accept argument tokens. pick the view you desire to add, done.

Tags: Views

Similar questions

Different row tpl for every row in a view?
Can I create a different row template for every row in a view? Something like views-view-fields--foobar--0.tpl.php, views-view-fields--foobar--1.tpl.php and so on? My goal is to create a slideshow width different template for every frame.
How Print individual fields in a view row by row
I have so much fields in a content like "title", "field_image", "field_description", and i use a view for create a block and put it on my front page... I will make a slider with a jquery plugin (jssor slider), i need use the structure of jssor slider. then in my view, i use "views-view-fields--[name_machine]--block.html.twig" for print individual f...
Why does my selection gets only the last row?
I rewrote for Drupal 8 a Drupal 6 query on 3 custom entities (see here): Unfortunately, I can retrieve only the last of each {datedistribution-role-nom}. For each 'datedistribution', if I have more than one 'role' or 'name', I can get only the last one considering the sort order I put in place. Strange, no? Any idea why?
csv file imports only the last row when imported in drupal 8 webform
I have a csv file which contains the entries from drupal 7 webform. I uploaded the csv file in drupal 8 webform. It imports the data, but only the last entry is shown in the drupal 8 webform's results. This is the csv file: columns A-D : IP Add, UUID, Phone Number, Email. (dummy entries). When importing the mapping from the csv file, it shows me th...
Check for last row
Is there any way to find the last row from view itself.I have to add some extra html for the last item. I know we can do this using view's twig template, but I want to know is there any option in the view itself to check the last item.
Insert row into a view
I have a view which fetches nodes from content type A, arranges them in a grid and uses a displaysuite buildmode to render them...nothing fancy so far. Now I want to insert a specific node of content type B at a specific position in the this: I'm not sure where to start. I was hoping there would be some hook, preprocess function or what...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.