Thread tagged as: Question, Problem

Dynamic custom content filtering

Hi, how do I get content to change based on user input.

E.g. On this website you can select a drop down (i.e. Brand) and then Perch will use custom content to display only items for that brand:


James Hazelton

James Hazelton 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If the the URL is ?brand=vespa you'd use the filter

$filers = array():

if (perch_get('brand')) {
    $filters[] = array(
        'filter' => 'brand',
        'match' => 'eq',
        'value' => perch_get('brand'),

perch_content_custom('Scooters', array(
    'filter' => $filters,

Ok thanks