Jump to content

arpeekay

Members
  • Posts

    3
  • Joined

  • Last visited

arpeekay's Achievements

Newbie

Newbie (2/6)

0

Reputation

  1. I had this problem with a RackSpace Cloud Sites as well. Ryan's Solution worked for me too.
  2. Got it working. Instead of using an array I just had to check each feature in its own query "template=restaurant_features=1052|1053|1054|1115" will return restaurants with any of those features vs "template=restaurant_features=1052, restaurant_features=1053, restaurant_features=1054, restaurant_features=1115" will return restaurants with ALL of those features
  3. $features = $pages->get('/restaurant/features/')->children; foreach($features as $feature){ if(!$input->post[$feature->name]){$features->remove($feature);} } if(count($features) > 0){ $restaurants = $pages->find("restaurant_features=$features") } This code returns the pages where one condition is met. I need it to only return the pages where ALL conditions are met. The query ends up look like so: "template=restaurant_features=1052|1053|1054|1115" Not sure where to go from here, any help would be greatly appreciated.
×
×
  • Create New...