Jump to content

Recommended Posts

Posted

Hi guys.

Can't find this info anywhere.

I'm trying to use the multipage values to do a search function.

There are tours on this project, and location of options on a via page select. Like tags: "downtown, old town, beach...".

On the search field, the admin selects one or many. On the frontend, the user can select whichever wanted, and output tours that have at least those options selected.

My query looks like this:

template=tour, (where~=1041 || where/~=1042)

But it doesn't understand the ~=

How do I get around this?

thanks,

H

Posted

~= is only for textfield matching, a.k.a. matching inside of a single block of text. For multi-value fields just use = and it'll find you all pages holding that value in the field.

Posted

See it like that: It is a exact match. It's just that there may be other possible matches as well. To match a field which has only a specific value even though it's mutli-value you'd need to use something like that "field=$id, field.count=1".

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...