Forum

Thread tagged as: Problem, Runway, Events

Event Start

Hi,

Just wondering how I return all future events, apart from the very next one ?

What I am trying to do is have two templates. I want to 'advertise' the next event, but then underneath, list the forthcoming events.

However, in the list I do not want to repeat the 'next event'.

I had thought the 'start' option would work for this.

perch_events_custom(array(
        'filter'     => 'eventDateTime',
    'match'      => 'gte',
    'value'      => date('Y-m-d'),
    'sort'       => 'eventDateTime',
    'sort-order' => 'desc',
    'template'   => 'listing/custom-listing-day.html',
        'start        => 2
));

I have assumed the start value is not zero ?

Even so, changing the above start value to 1 or any integer does not adjust the list.

Andrew Kennedy

Andrew Kennedy 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

If you set start you also need to set count at the same time.

Your missing the second single quote on the start option.

Thanks Drew, Robert.

Apologies, missing quote was a typo.

Wrt count, the idea was to list ALL forthcoming events and if necessary paginate, although I doubt I will need to do this.

If I set count, surely, I will then limit the number of items being returned/displayed.

Is there a way I can set count to be 'all' as it were.

I suppose I could just set count to some ludicrous number, such as 100000 ?

Yes, this seems to work.

Excellent, thank you for the fast feedback, really appreciated.