Search
Meerkat

Meerkat

The "like" Filters

The like filters allow you to query comments using an SQL-like pattern.

#The like Filter

The like filter allows you to query a comment property and compare it with an SQL-like pattern. The following example queries checks the comment's content against the %panel% pattern to return all comments that contain the phrase panel somewhere in their content:

1{{ meerkat:responses filter="like(content, %panel%)" }}
2 
3 {{ comments }}
4 <!-- Render your comment thread here. -->
5 {{ /comments }}
6 
7{{ /meerkat:responses }}

#The not:like Filter

The not:like filter is the logical opposite of the like filter, and allows you to query a comment property and compare it with an SQL-like pattern. All comments that do not match the provided pattern will be returned. The following example queries checks the comment's content against the %panel% pattern to return all comments that do not contain the phrase panel somewhere in their content:

1{{ meerkat:responses filter="not:like(content, %panel%)" }}
2 
3 {{ comments }}
4 <!-- Render your comment thread here. -->
5 {{ /comments }}
6 
7{{ /meerkat:responses }}

Some absolutely amazing
people

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.