Hey all,
i wonder if there is a way to imitate an IN() statement like
"SELECT id WHERE field IN(1023,1208,2357)"
I have a website where i have products assigned to categories, and each product can be assigned to multiple categories. The categories are (of course) pages, so the "categories" field of a product might look like "1034|1209|1508".
The pages to display the products are also assigned a category (the products are not displayed on the category pages themselves), but this can only be one at a time.
What I am trying to do is to find all products of a category and display them on a page... but I can't figure out how to do that.
I tried
$pages->find('category='.$page->category);
but that didn't work, i think due to the fact that each page can have multiple categories.
I would need something like
$pages->find($page->category.' in category');
or
$pages->find('category has '.$page->category);
Is there already a way to accomplish this? Or should I use a completely different approach?
Any help is appreciated.
Thanks!