Jump to content

Recommended Posts

Posted

I need some confirming on how find selectors work...

I have, for example, a page find selector setup as:

parent=/portfolio/, sort=sort, project_location_london=camden, project_location_elsewhere=midlands

What this would do is return any children of 'portfolio' that has project_location_london set as camden and project_location_elsewhere set as midlands.

What I'm wondering is if it is possible to return any children of 'portfolio' that either have the project_location_london as camden or project_location_elsewhere as midlands, so it would retrieve both?

Posted

Found it...

$items = $pages->find("template=product, stock>0, (featured_from<=today, featured_to>=today), (highlighted=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
×
×
  • Create New...