Forum

Thread tagged as: Question, Field-Types

perch_collection does not contain

Hi, Just wondering if there is a way to filter by not containing so for example:

perch_collection('News', [
       'template'=>'article.html',
       'filter'=>'regions',
       'match'=>'not contain',
       'value'=>'this'
    ]);

maybe there is space for a ! or something ? Thanks Dylan

Dylan Rynhart

Dylan Rynhart 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

notcontains should work.

That's super Drew, I know there was something. Thanks Dylan