Blog Sections Open

Filtering getResources by a TV That Matches the Current Resource in Evolution CMS

How to build related-resource lists where a TV value must match the current page context.

Related-content blocks often need a simple rule: show other resources whose TV matches something from the current page. In practice, this becomes awkward when the filter syntax and the current page placeholders do not line up cleanly.

The original example tried to compare a TV field such as categories against the current resource title. That is a useful pattern, but only when the dynamic value is inserted into the filter expression in the exact format the snippet expects.

This kind of query is a strong fit for related articles, product suggestions, team member groupings, or categorized catalogs. The important lesson is that dynamic TV filters are not just “static filters with placeholders”; they need deliberate value formatting and testing.

Newer post

Understanding `landingPage` Behavior in AjaxSearch for Evolution CMS

How AjaxSearch landingPage changes result behavior and why the same search can act differently depending on the page context.

Older post

Speeding Up AJAX Teacher Filters in Evolution CMS with Cached TV Logic

How to replace slow TV-heavy getResources filtering with a cached custom resource loop for AJAX-driven filters.