I installed the Twig Tweak module on my site to render Views on the home page.
I want to make the display mode frontpage_tasks
for the current user, his account, his stores and his groups.
{{ drupal_entity('user', user.id, 'frontpage_tasks') }}
{{ drupal_view('accueil_page_liste_des_taches_boutique', 'block_1') }}
{{ drupal_view('accueil_page_liste_des_taches_groupe', 'block_1') }}
Here is one of my Views :
The problem is that the Views module adds a lot of unnecessary markup that makes it impossible to display it correctly.
I just want to make the display mode, without any additional tags.
How to do this ? Is there a Twig code to render only Views without the additional View tags ?
UPDATE
I created an views-view--accueil_page_liste_des_taches_boutique.html.twig
template. It only contains the following code :
{{ rows }}
I display the Views blocks with the code below, on my homepage :
<div class="main-timeline">
<div class="row">
{{ drupal_entity('user', user.id, 'frontpage_tasks') }}
{{ drupal_view('accueil_page_liste_des_taches_boutique', 'block_1') }}
{{ drupal_view('accueil_page_liste_des_taches_groupe', 'block_1') }}
</div>
</div>
I still have this damn markup :
<div class="views-element-container">
<div>
...
</div>
</div>
Is there a code in TWIG to remove this basisage ?