I'm in need of help (again ;-) )... I'm trying to paginate the content of a matrix in a structure, but can't seem to get it done... This is the code I've got:
{% for inhoud in entry.getDescendants() %}
{% if inhoud.type == 'segment' %}
<section id="{{ inhoud.title|kebab }}" class="segment">
<h2 class="section-h2">{{ inhoud.title }}</h2>
</section>
{% endif %}
{% if inhoud.type == 'inhoud' %}
{#{% paginate inhoud.trace.limit(10) as inhoud %}#}
{% for inhoud in inhoud.trace %}
{% include ["trace/" ~ inhoud.type, "trace/default" ] %}
{% endfor %}
{% endif %}
{% endfor %}
My pagination code is in comments since it doesn't work, but that's where I need the pagination. Is there anyone nice enough to want to help me figure this out? We've got a big matrix field (it's the route of certain products from farm 'till the shop, so lots of blocks in there), and I'd like to paginate the content of these 'segments', but we'll need those segments printed out because there's a navigation with anchorpoints on top of the site. Thanks!