Answer the question
In order to leave comments, you need to log in
Set_exposed_input and List(text), how to set value?
Good day!
I display the view programmatically, all filters and arguments were applied up to a certain point - before I got stuck on the filter for a field with the List (text) type.
<?
$view = views_get_view('index_realty');
$view->set_display('page_4');
$view->set_arguments(array($rlty_term_id, $rooms));
$view->set_exposed_input(array('field_tipe_action' => $action_type, 'field_area_total' => $area_from, 'field_area_total_1' => $area_to, 'field_price' => $price_from, 'field_price_1' => $price_to, 'field_god_1'=>$year_from, 'field_god_2'=>$year_to, 'field_seller'=>$seller));
$view->set_items_per_page(500);
$view->set_current_page($page_num);
$view->execute();
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question