In Sulu 2.6, we were able to loop over snippets defined inside our sidebar snippet, and use their template value to construct a Twig template path - e.g.
{% for index, snippet in content.sidebar.snippets %}
<div class="snippet-container">
{{ include('includes/snippets/' ~ view.sidebar.snippets[index].template ~ '.html.twig', {
data: snippet,
view: view.sidebar.snippets[index],
}, ignore_missing: true) }}
</div>
{% endfor %}
However, now in Sulu 3.0 the view.sidebar.snippets property does not exist, and there is no way to get the snippet template type string as we previous did using view.sidebar.snippets[index].template etc.
Is there a new way to do this now? Or is it possible to add this to 3.0?
Thanks