Skip to content
Zotonic
  • Start
  • Cookbook
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_base
  • Reference
  • Frontend developer
  • Navigation
  • Template filter
  • Collection

next_in

Module

mod_base

Return the next page in a menu or collection: {{ id|next_in:container_id }}.

Visits the container itself, then menu children and ordered haspart descendants in depth-first order. Invisible subtrees and repeated resources are skipped. Returns undefined at the boundary or when the page is not in the container.

Edit on GitHub

Related documentation

Filters

prev_in

Return the prev page in a menu or collection: {{ id|prev_in:container_id }} .

Filters

menu_ids

Returns all resource ids in a menu. Could return invisible and non existing resource ids. The returned ids are a flat list, the hierarchy…

Filters

menu_trail

Return a breadcrumb navigation trail for the given id.

Filters

menu_subtree

Get the subtree of an id in a menu (if any).

Filters

menu_expand

Takes a menu, or a menu resource id, and adds all haspart objects connected to the menu ids.

Filters

menu_flat

Flattens the rsc menu structure for use in a template loop.

Filters

admin_menu_items

Flatten admin dropdown subgroups into headings and links, with separators around groups. Remove leading, trailing and consecutive…

Models

menu

Menu queries and removal support. The query paths reuse the menu filters:

Filters

extract

Extract a specific property from each item in a list.

GitHub © 2026 Zotonic