I have a VIew pulling off of rendered entities, a few exposed filters, a single sort criteria. It's works great when the page is rendered, however I can't preview the View through the UI. Likewise when I choose the option to show SQL output, that is not shown either through the UI. I've tried manually refreshing the preview, no luck. I have reinstalled Views, rebuilt the view and still no luck. So to make sure it wasn't the view itself that is to blame I created a simpler view from scratch and still get no preview. I though it might be 'Better Exposed Filters' so I uninstalled and adjusted the view but still no luck. Sorry to bother but I have googled around and don't find any answers likewise hit up a few #drupal-xxxx and no one was able to help.
It should be noted that I had to hack out a couple mini-modules to create dropdown menus for choices in exposed filters implementing hook_form_views_exposed_form_alter usually in the form of:


function dd_bedrooms2_form_views_exposed_form_alter(&$form, &$form_state) {
  $field_id = 'field_bedrooms';

  if (isset($form[$field_id .'_value'])) {
    $options = array('' => t('- Any -'),
         'Studio' => 'Studio',
         'One' => '1',
         'Two' => '2',
         'Three' => '3', 
         etc...

Would using custom exposed filters break the preview? If so how can I make sure the preview/SQL output is still available when using these mini-modules. Like I say the view is actually rendered OK just not in the UI.
I guess I don't know where to start on troubleshooting this, only been drupaling proper for about a month now.

Thanks

Comments

mustanggb’s picture

Status: Active » Closed (outdated)