I have a Structure with my entries in. How can I hide the parent entries that contain children? I still want to show the parents children.
For example I want all the below entries bar "About" and "Services"
- Home
- About
- Sub
- Sub
- Sub
- Stuff
- Services
- Sub
- Sub
- Sub
- Things
So, this is my code right now
{# Set parameters for prev/next elements list #}
{% set params = craft.entries.section('pages') %}
{# Get the prev/next elements #}
{% set prevEntry = entry.getPrev(params) %}
{% set nextEntry = entry.getNext(params) %}
Do I need to modify the params to remove the entries that are parents?