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:
{{ meerkat:responses filter="like(content, %panel%)" }}
{{ comments }}
<!-- Render your comment thread here. -->
{{ /comments }}
{{ /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:
{{ meerkat:responses filter="not:like(content, %panel%)" }}
{{ comments }}
<!-- Render your comment thread here. -->
{{ /comments }}
{{ /meerkat:responses }}