Unable to filter perch_events_custom on a custom value

  • I have added a custom field to the event.html template:


    Code
    1. <perch:events
    2. id="courseLink"
    3. label="Course"
    4. type="courselist"
    5. suppress="true"
    6. divider-before="Course Info"
    7. />

    This is basically a modified version of page list that will provide the user with a drop down menu of pages based on their pageTreePosition. It returns a filename, for example:


    courseLink /reiki-level-1-connect-with-universal-energy.php


    However using perch_events_custom to filter on said courseLink value, the results are always zero.

    Code
    1. perch_events_custom(array(
    2. 'template' => 'events/listing/event-day.html',
    3. 'filter' => 'courseLink',
    4. 'match' => 'eq',
    5. 'value' => '/reiki-level-1-connect-with-universal-energy.php'
    6. ));

    Even changing the courseLink to a text field for a simpler value still didn't work.


    I'm able to filter on other values such as eventTitle

    Code
    1. perch_events_custom(array(
    2. 'template' => 'events/listing/event-day.html',
    3. 'filter' => 'eventTitle',
    4. 'match' => 'eq',
    5. 'value' => 'Tester Event'
    6. ));

    This works fine.


    Are we unable to filter on custom values within the events app?