- Issue created by @alphex
- π·πΊRussia Chi
It should work. Check that the specified view modes are configured correctly.
- πΊπΈUnited States alphex Atlanta, GA USA
They are...
I have two files.
paragraph--carousel-tab-item--carousel-tab-title.html.twig
and
paragraph--carousel-tab-item--carousel-tab-content.html.twigThis goes along with two display modes.
"Carousel Tab Content" and "Carousel Tab Title".
Which both are assigned to the nested paragraph type, "Carousel Tab Item"
Using
{{ drupal_entity('paragraph', title.entity.id(), 'carousel_tab_title') }}
To get those paragraphs, and passing it the view mode argument, DOES work... and gives me the correct tempplate suggestions.But when I use
{{ paragraph.carousel_items|view('carousel_tab_title') }}
It renders it as the default view, and does not give me alternate templates to use.
- π·πΊRussia Chi
paragraph.carousel_items|view('carousel_tab_title')
I think , in this case the
carousel_tab_title
view mode is expected to be defined on parent paragraph. But that's might be not what you want. You need to loop over paragraph entities stored in carousel_items field and apply the view mode to each one individually.