I have read through the docs and I am not sure if what I need to do is possible with array sets. I have filtered my entries using the following code"
{% set allDatabytes = craft.entries.section('databytes').limit(null) %}
{% set seriesCollection = [] %}
{% for databyte in allDatabytes %}
{# get only the series databytes #}
{% set series = databyte.series %}
{# add the series databytes to the series collection #}
{% for entry in series %}
{% set seriesCollection = seriesCollection|merge([entry.title]) %}
{% endfor %}
{% endfor %}
{# Output the filtered results #}
{% set filteredDatabytes = allDatabytes|without(seriesCollection) %}
<ul>
{% for entry in filteredDatabytes %}
<li>{{ entry.title }}</li>
{% endfor %}
</ul>
What I now need to do is add pagination to the filteredDatabytes
set of content.
From The Example Below
This is my code which currently doesn't display any results. I guess you add the limit to the MyCriteria
model (is that the correct term)?
{% set MyCriteria = craft.entries.section('databytes').series(':empty:').limit(10) %}
{% paginate MyCriteria as entries %}
{% for entry in entries %}
{{ entry.title }}
{% endfor %}
{% if paginate.prevUrl %}
<a href="{{ paginate.prevUrl }}">Previous Page</a>
{% endif %}
{% if paginate.nextUrl %}
<a href="{{ paginate.nextUrl }}">Next Page</a>
{% endif %}
{% endpaginate %}