Hi,
Thanks for the documentation. I've tried to reproduce the example (case 2), but when I click on the exposed filters nothing happens and and I got this error on firebug (FF2):

$(this).parents(".dynamic-filter").attr("id") has no properties
http://localhost/drupal/modules/dynamic_views/js/dynamic_views.js
Line 178

Error happens also in IE7

Comments

sarvab’s picture

Can you supply an export of your view?

Thanks

amitaibu’s picture

  $view = new stdClass();
  $view->name = 'Test';
  $view->description = '';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = '';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'dynamic_node';
  $view->url = 'dynamic';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '1';
  $view->block = TRUE;
  $view->block_title = '';
  $view->block_header = '';
  $view->block_header_format = '1';
  $view->block_footer = '';
  $view->block_footer_format = '1';
  $view->block_empty = '';
  $view->block_empty_format = '1';
  $view->block_type = 'dynamic_filter_tease';
  $view->nodes_per_block = '3';
  $view->block_more = TRUE;
  $view->block_use_page_header = FALSE;
  $view->block_use_page_footer = FALSE;
  $view->block_use_page_empty = FALSE;
  $view->sort = array (
  );
  $view->argument = array (
  );
  $view->field = array (
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'story',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node);
  $views[$view->name] = $view;

amitaibu’s picture

OOps, wrong Export:

  $view = new stdClass();
  $view->name = 'Test';
  $view->description = '';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = '';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'dynamic_node';
  $view->url = 'dynamic';
  $view->use_pager = TRUE;
  $view->nodes_per_page = '1';
  $view->sort = array (
  );
  $view->argument = array (
  );
  $view->field = array (
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'story',
),
    ),
  );
  $view->exposed_filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'label' => '',
      'optional' => '0',
      'is_default' => '0',
      'operator' => '1',
      'single' => '1',
    ),
  );
  $view->requires = array(node);
  $views[$view->name] = $view;

sarvab’s picture

The type of view for your page should be set to one of the Dynamic Filter: view types. Hopefully that does it....

amitaibu’s picture

Status: Active » Fixed

Damn, I feel like a fool for the second time.... You were right again.
Maybe in the README.TXT write:

2. Set the type of view to Dynamic Filter: Teaser/Full/List/Table (Make sure it is Dynamic Filter:Teaser, NOT Dynamic:Teaser)

sarvab’s picture

Glad you got it working! Ill also rewrite some of the README text there as per your suggestion. I realize there are some usability issues going on here and I plan on making it more intuitive.

Anonymous’s picture

Status: Fixed » Closed (fixed)