You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parameter offset and limit on navigation tag missing #405
In statamic v2 we had additional parameters like limit and offset. This was helpful to create for a example a navigation, where the logo is placed in the middle. When I try to use these modifiers on the current version nothing happens.
E.g.
{{ nav limit="3" }}
<a href="{{ url }}">{{ title }}</a>
{{ /if }}
{{ /nav }}
{{ partial:logo}}
{{ nav offset="3" }}
<a href="{{ url }}">{{ title }}</a>
{{ /if }}
Is this still on the radar? I'd be happy to PR it.
Plan: add limit and offset params to the {{ nav }} and {{ structure }} tags, matching the v2 behavior. They'd apply to the top level items only, and the tree gets sliced before augmenting, so first/last/index/count stay correct for what's actually rendered. Small change in Tags\Structure plus tests.
Activity
mynetx commentedon Jul 22, 2026
Is this still on the radar? I'd be happy to PR it.
Plan: add
limitandoffsetparams to the{{ nav }}and{{ structure }}tags, matching the v2 behavior. They'd apply to the top level items only, and the tree gets sliced before augmenting, sofirst/last/index/countstay correct for what's actually rendered. Small change inTags\Structureplus tests.