Blog Sections Open

Showing Only Folder Resources in a Wayfinder Menu

A simple Wayfinder pattern for rendering navigation that includes only container resources and ignores regular documents.

Sometimes a menu should list only section containers, not every child document underneath them. In Evolution CMS this is a natural Wayfinder use case, but it helps to be explicit about the goal: you want structural navigation, not a full document list.

The Core Setting

Use the folder-only option in the Wayfinder call and keep the start point and depth aligned with your real tree.

[!Wayfinder?
  &startId=`16`
  &onlyFolders=`1`
  &level=`2`
!]

If the menu still shows unexpected nodes, review whether those resources are marked as containers and whether your template logic adds items outside the normal wrapper flow.

Newer post

Building Infinite Scroll for Ditto Listings

How to extend a Ditto-based listing with infinite scroll so visitors can load more items without classic pagination clicks.

Older post

Troubleshooting YAMS Language Switching and Cache Bleed

What to check when YAMS starts returning the wrong language after repeated switching, even on pages that seem to bypass caching.