Hot answers tagged

2

For your first issue, if you are not paginating then your {% else %} should be: {% set pageEntries = entries.all() %} So that the query gets executed. In full: {% if pagination is defined and pagination == true %} {% paginate entries as pageInfo, pageEntries %} {% else %} {% set pageEntries = entries.all() %} {% endif %} Regarding ...


1

You will need to use your Matrix field handle (which you didn't show in your question) and replace yourMatrixFieldHandle: {% for client in clients %} {{ client.title }} {# Get all blocks related to the client entry #} {% for block in client.yourMatrixFieldHandle.all() %} {% switch block.type %} {% case "clientImage" %} ...


1

I don't know if this is the best solution or if it will even work, but this would be my first try. {% for spotlight in craft.entries().section('spotlights').all() %} {# Check to see if the title of the "spotlight" matches the current entry's title #} {% if spotlight.title == entry.title %} <div class="entry-count">{{ loop.index }} of {{ total }...


Only top voted, non community-wiki answers of a minimum length are eligible