Blog Sections Open
Calling Wayfinder Conditionally from the if Snippet in Evolution CMS
How to call Wayfinder conditionally through the if snippet when only certain parent sections should render a menu.
Conditional menus are a normal requirement in Evolution CMS projects, but they become tricky when one snippet has to decide whether another snippet should run at all. The original example wrapped a Wayfinder call inside the if snippet so the menu would render only for selected parent IDs.
This is a useful pattern because it keeps the logic declarative in the template layer: if the current parent belongs to a specific set, render the menu; otherwise output nothing. The key is to keep the nesting syntax clean so the parser understands where the conditional expression ends and the Wayfinder call begins.
It is a small pattern, but a very reusable one for section-specific navigation in Evolution CMS.
Bootstrapping the Evolution CMS API Inside a Standalone AJAX PHP File
How to initialize the Evolution CMS API inside a standalone PHP endpoint so AJAX handlers can reuse site configuration and core services.
Building Multi-Condition TV Filters with SQL Logic in Evolution CMS
How to express compound TV-based conditions when one TV controls the year and another controls the month or secondary bound.