PageList filtering with Tags attributes

Permalink
Hi folks,

I want to display related content below my pages. I don't use Topics.
I prefer to use Tags since it's also more flexible for the final user.

But I need to aggregate content from more than one tag as once. (For example, I want pages tagged with "banana" or "orange").

$this->list->filterByTags('banana');

This code isn't suitable since you can pass only one parameter at time.

Is there a way to pass an array?
or to join multiple filters results together?

Thanks in advance
Marc

marcsublet
 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Completely untested but how about
$this->list->filterByTags('banana' || 'orange');
marcsublet replied on at Permalink Reply
marcsublet
Hi,

Thanks for the proposal but it isn't working.
With the filterByTags() function, you can only filter by one item at time.

Cheers,
Marc