After upgrading from 6.x-2.1 to 2.2 my glossary view results are displayed differently although the view has not been changed. Before the upgrade the display is like on the image before.jpg, after that the display has changed (after.jpg).

The code of the view is:

$view = new view;
$view->name = 'glossary';
$view->description = 'A list of all content, by letter.';
$view->tag = 'default';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => 'Title',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'changed' => array(
    'label' => 'Last update',
    'date_format' => 'large',
    'custom_date_format' => '',
    'exclude' => 0,
    'id' => 'changed',
    'table' => 'node',
    'field' => 'changed',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'title' => array(
    'order' => 'ASC',
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => 'a',
    'default_argument_php' => '',
    'validate_argument_vocabulary' => array(),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('filters', array(
  'vid' => array(
    'operator' => 'in',
    'value' => array(
      '1' => 1,
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'vid',
    'table' => 'term_data',
    'field' => 'vid',
    'relationship' => 'none',
  ),
  'tid' => array(
    'operator' => 'or',
    'value' => array(
      '1' => '1',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'type' => 'select',
    'vid' => '1',
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 0,
    'relationship' => 'none',
    'reduce_duplicates' => 0,
    'override' => array(
      'button' => 'Override',
    ),
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
  'role' => array(),
  'perm' => '',
));
$handler->override_option('header_format', '3');
$handler->override_option('header_empty', 1);
$handler->override_option('use_ajax', '1');
$handler->override_option('items_per_page', 36);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => '',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'changed' => 'changed',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 1,
      'separator' => '',
    ),
    'changed' => array(
      'sortable' => 1,
      'separator' => '',
    ),
  ),
  'default' => 'title',
));
$handler = $view->new_display('page', 'Page', 'page');
$handler->override_option('header', '<h2>Filmkritiken von A bis Z</h2>

Hier sind alle Filmkritiken alphabetisch nach den  Titeln der Filme aufgelistet.');
$handler->override_option('path', 'glossary');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Glossary',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
));
$handler = $view->new_display('attachment', 'Attachment', 'attachment');
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'summary asc',
    'style_plugin' => 'unformatted_summary',
    'style_options' => array(
      'count' => 1,
      'override' => 0,
      'items_per_page' => '25',
      'inline' => 1,
      'separator' => ' | ',
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => 'a',
    'validate_argument_vocabulary' => array(),
    'validate_argument_php' => '',
  ),
));
$handler->override_option('attachment_position', 'before');
$handler->override_option('inherit_arguments', 0);
$handler->override_option('inherit_exposed_filters', 0);
$handler->override_option('displays', array(
  'page' => 'page',
  'default' => 0,
));

Query code:

SELECT node.nid AS nid,
   node.title AS node_title,
   node.changed AS node_changed
 FROM node node 
 LEFT JOIN term_node term_node ON node.vid = term_node.vid
 LEFT JOIN term_data term_data ON term_node.tid = term_data.tid
 WHERE (term_data.vid in ('1')) AND (term_node.tid = 1) AND (SUBSTR(node.title, 1, 1) = 'a')
   ORDER BY node_title ASC

Thanks in advance for your support.

Comments

coltrane’s picture

Title: different display after upgrade » Glossary view changed after upgrade

I am also experiencing a changed view that has an attachment with glossary mode argument after upgrading to View 2.2. The page has an exposed filter on a CCK options field. If the view is filtered the glossary attachment disappears.

$view = new view;
$view->name = 'baby_name';
$view->description = baby name database';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'title' => array(
    'order' => 'ASC',
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'default',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => 'a',
    'default_argument_php' => '',
    'validate_argument_vocabulary' => array(),
    'validate_argument_type' => 'tid',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'babyname' => 'babyname',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'field_gender_value_many_to_one' => array(
    'operator' => 'or',
    'value' => array(),
    'group' => '0',
    'exposed' => TRUE,
    'expose' => array(
      'use_operator' => 0,
      'operator' => 'field_gender_value_many_to_one_op',
      'identifier' => 'gender',
      'label' => 'Gender',
      'optional' => 1,
      'single' => 1,
      'remember' => 0,
      'reduce' => 0,
    ),
    'id' => 'field_gender_value_many_to_one',
    'table' => 'node_data_field_gender',
    'field' => 'field_gender_value_many_to_one',
    'relationship' => 'none',
    'reduce_duplicates' => 0,
  ),
));
$handler->override_option('access', array(
  'type' => 'perm',
  'role' => array(),
  'perm' => 'access content',
));
$handler->override_option('title', 'Baby Name Database');
$handler->override_option('use_ajax', '1');
$handler->override_option('items_per_page', 36);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'list');
$handler->override_option('style_options', array(
  'grouping' => '',
  'type' => 'ul',
));
$handler = $view->new_display('page', 'Page', 'page');
$handler->override_option('path', 'babyname');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => 'Glossary',
  'weight' => '0',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
));
$handler = $view->new_display('attachment', 'Attachment', 'attachment');
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'summary asc',
    'style_plugin' => 'unformatted_summary',
    'style_options' => array(
      'count' => 1,
      'override' => 0,
      'items_per_page' => '25',
      'inline' => 1,
      'separator' => ' | ',
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'default_argument_user' => 0,
    'default_argument_fixed' => 'a',
    'validate_argument_vocabulary' => array(),
    'validate_argument_php' => '',
  ),
));
$handler->override_option('attachment_position', 'before');
$handler->override_option('inherit_arguments', 0);
$handler->override_option('inherit_exposed_filters', 1);
$handler->override_option('displays', array(
  'default' => 'default',
  'page' => 'page',
));
coltrane’s picture

Marked #349126: Broken Alpha Bar a duplicate of this. OP there points to a live example:

http://www.crydee.com/raymond-feist/encyclopedia/riftwar-cycle/

As soon as you choose any of the letters from the alpha bar you loose the alph bar and each bar becomes just a list of the results

coltrane’s picture

I have found that turning off AJAX in the view solved the problem of the glossary attachment disappearing. Does that solve it for anyone else experiencing this problem?

Edit: It solves the problem of the bar disappearing for exposed filters. But clicking any letter in the attachment makes the bar disappear still.

coltrane’s picture

Title: Glossary view changed after upgrade » Glossary view broken after upgrade
StatusFileSize
new11.49 KB

Reproduced with the default glossary, not edited. Clicking a letter makes the bar disappear and also duplicates results. See screenshot, similar to OP's after.jpg screenshot.

CloudCuckoo’s picture

Marked #349475: Attachement views and glossary page (originally a support request) as a duplicate of this.

gp.mazzola’s picture

StatusFileSize
new49.14 KB

Hi I did not come from an upgrade, but installing latest version of views2 and trying the glossary view provided, I went into the same odd behaviour.
After some trying, I found a solution that works for me, that is:
in the attachment display configuration, in the argument configuration for title:

  1. I chose PHP validator
  2. I put this simple code
    return FALSE;
    
  3. I chose to return a summary view if argument does not validate

This way the argument never validate and a summary view is always returned.
I don't know if this maybe is not so elegant, but it works as a workaround! ;)

Ciao,
G.P.

Anonymous’s picture

Gave it a try and seems to work fine.

Hopefully Merlin will confirm or offer a different option after he finishes his 'Mince Pies' :)

caromill’s picture

Works just fine for me too. Thanks! :-)

Anonymous’s picture

It fixes the issue of duplicates for me but the letter bar is still disappearing from the view when clicking on a letter...

gp.mazzola’s picture

@rickauer

It's strange, I can't reproduce it. It works fine with me.
Are you sure that after the PHP code, you chose:

Action to take if argument does not validate:
Summary, sorted ascending

Anonymous’s picture

stupid me, I confused

Action to take if argument does not validate

with

Action to take if argument is not present

Thanks, working now.

ugerhard’s picture

This seems to be a problem with Attachment views picking up the argument from their parent view, even if "Inherit arguments" is set to "no".

ugerhard’s picture

Title: Glossary view broken after upgrade » Attachments pick up arguments although "Inherit arguments" is set to "no"
Component: page displays » Code

I did some digging. I think the problem stems from pre_execute(), especially the following lines in that method (line 852 in view.inc):

    if ($args) {
      $this->set_arguments($args);
    }

If an attachment display is set to ignore arguments, $args for the attachment is empty. But when the display is executed, the empty arguments array is not uses because of the if ($args) check and the arguments from the parent view seem to be used.

xmacinfo’s picture

Title: Attachments pick up arguments although "Inherit arguments" is set to "no" » Attachments pick up arguments although "Inherit arguments" is set to "no" (Glossary view bug)

Thanks G.P.

I've spent all night trying to make Glossary work. It's only when I tested a Views 2.0 install versus Views 2.2 that I realized that I was facing an issue with Views 2.2. So I came here and found out about this fix.

I've modified the title of this bug to make it easier to spot.

merlinofchaos’s picture

Status: Active » Fixed
StatusFileSize
new832 bytes

This is now fixed in -dev. For those who need a quicker fix, I attached a patch you can use (but this patch is already committed).

Anonymous’s picture

Thanks a lot! Wouldn't this be worth a 2.3 release so people had a nice upgrade path?

merlinofchaos’s picture

I'm trying to get all the way through my queue before I do a 2.3 release. I had 400 unread messages when I started this week. Down to 124 as of now. =)

I figure with this patch available here, people can wait a few days. One bonus is that thanks to Nedjo, the glossary view also gained AJAX capability.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

strauch’s picture

alexpott’s picture

Version: 6.x-2.2 » 6.x-2.3

Sorry if this is known already but just to point out that this patch didn't make it into Views 2.3

strauch’s picture

The glossary just didn't work, when i click on a letter nothing happens. It is loading, and jumps down to the list, but the list isn't updated.

Greetings

strauch

coltrane’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

I'm not able to confirm this at this moment but if it really didn't make it into 2.3 the issue status needs to be changed.

@strauch, can you confirm that it doesn't work in 6.x-2.3?

strauch’s picture

hi coltrane,

yes i can confirm, it doesn't work in views 2.3.

merlinofchaos’s picture

alexpott: I wish people wouldn't make false or inaccurate statements simply because they don't know what's going on. The patch did in fact make it in, as I said above it had already been committed to -dev. All you do is confuse the issue.

I can confirm that this is working on my test sites; I do not have any idea why it is not working for other people.

alexpott’s picture

merlinofchaos: Sorry never meant to confuse the issue. I just had applied the patch to views 6.2 and got it working on a site and then upgraded to Views 6.3 and lost the functionality - obviously I did something wrong - I just tried to report my experience.

strauch’s picture

on my installation the glossary didn't work i reported what happens when i want to sort by letter but nothing happens here. so what can we do to patch this bug?

strauch’s picture

hi,

i checked it a litlle bit, the example code "glossary" of the views module works. when i'm in the editing mode of views, my user list with glossary works to, when i save it and open the page it doesn't work. i don't see any difference, maybe it helps when i export my code?

thanks

strauch

eridanibrew’s picture

Version: 6.x-2.3 » 6.x-2.5

I am running into what appears to be this bug, or at least related to it. This is making my site kind of unusable for now, since users can only see 'A' entries in the database.

I have three views defined, each using a glossary style attachment. All three worked in views 2.1.

I updated to views 2.5, and now 2 of the three fail. The one that works is the original "glossary" view. The other two views were constructed to be essentially the same, although they work off different node types, display different fields, etc.

The symptom: the glossary letters display correctly above the view. When the user selects a different letter (letter 'B'), he sees a momentary "Wait" cursor, the cursor goes away, then nothing happens; the 'A' entries are still displayed.

If I change the default argument used when no argument is supplied (in the Default view screen) to 'B', then only B entries appear, regardless of which letter is selected. It appears that the selected argument is not getting to the glossary. (or through the glossary to the Page view, or something. I don't understand how this works at all:( ).

Interestingly, when I am editing the view I can select the Page View and use the Preview button, and everything works OK. Odd that it works in Preview but not in regular usage.

I am providing two sample views below. The first is the default glossary view that works. The second is a view that does not work.

System info: running Drupal 6.10 on a Hostmonster (Linux) hosting service, php5.2.9, Apache 2.2.11.

I spent a couple of days looking through code, but I can't even make out where the glossary stuff is happening:( Most of the other modules I can follow along, but this one is pretty complicated for a newbie like me.

Thanks,
brew

------------------------------------------------------------------------------------
Default view that works:
$view = new view;
$view->name = 'mbrcck_edit_glossary';
$view->description = 'Listing memberships by letter';
$view->tag = 'mbrcck edit glossary';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
'field_user_id_uid' => array(
'label' => 'NodeRef',
'required' => 0,
'delta' => -1,
'id' => 'field_user_id_uid',
'table' => 'node_data_field_user_id',
'field' => 'field_user_id_uid',
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'value_1' => array(
'label' => 'Last Name',
'exclude' => 0,
'id' => 'value_1',
'table' => 'profile_values_profile_last_name',
'field' => 'value',
'relationship' => 'field_user_id_uid',
),
'title' => array(
'label' => 'Mailing Label',
'link_to_node' => 0,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'status' => array(
'label' => 'Active',
'type' => 'yes-no',
'not' => 0,
'exclude' => 0,
'id' => 'status',
'table' => 'users',
'field' => 'status',
'relationship' => 'field_user_id_uid',
),
'name' => array(
'label' => 'Login Name',
'link_to_user' => 0,
'exclude' => 0,
'id' => 'name',
'table' => 'users',
'field' => 'name',
'relationship' => 'field_user_id_uid',
),
'value' => array(
'label' => 'Home Phone',
'exclude' => 0,
'id' => 'value',
'table' => 'profile_values_profile_home_phone',
'field' => 'value',
'relationship' => 'field_user_id_uid',
),
'field_expire_date_value' => array(
'label' => 'Expiration Date',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
),
'link_to_node' => 0,
'label_type' => 'widget',
'format' => 'default',
'multiple' => array(
'multiple_number' => '',
'multiple_from' => '',
'multiple_to' => '',
'group' => TRUE,
),
'repeat' => array(
'show_repeat_rule' => '',
),
'fromto' => array(
'fromto' => 'both',
),
'exclude' => 0,
'id' => 'field_expire_date_value',
'table' => 'node_data_field_expire_date',
'field' => 'field_expire_date_value',
'relationship' => 'none',
),
'edit_node_1' => array(
'label' => 'Edit Membership',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
),
'text' => 'Edit',
'exclude' => 0,
'id' => 'edit_node_1',
'table' => 'node',
'field' => 'edit_node',
'relationship' => 'none',
),
'edit_node' => array(
'label' => 'Edit Login',
'text' => 'Edit',
'exclude' => 0,
'id' => 'edit_node',
'table' => 'users',
'field' => 'edit_node',
'relationship' => 'field_user_id_uid',
),
));
$handler->override_option('arguments', array(
'value' => array(
'default_action' => 'default',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 1,
'limit' => '1',
'case' => 'upper',
'path_case' => 'none',
'transform_dash' => 0,
'id' => 'value',
'table' => 'profile_values_profile_last_name',
'field' => 'value',
'relationship' => 'field_user_id_uid',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => 'a',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'poll' => 0,
'image' => 0,
'panel' => 0,
'admin_log' => 0,
'announcement_form' => 0,
'book' => 0,
'event' => 0,
'lawn_mow' => 0,
'lookingup_form' => 0,
'mbrcck' => 0,
'mem_proc_page' => 0,
'page' => 0,
'story' => 0,
'stras_signup' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'4' => 0,
'2' => 0,
'1' => 0,
'3' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'mbrcck' => 'mbrcck',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'role',
'role' => array(
'5' => 5,
'4' => 4,
),
));
$handler->override_option('title', 'Membership Editing List');
$handler->override_option('header', '

Only local images are allowed. Only local images are allowed.

');
$handler->override_option('header_format', '2');
$handler->override_option('header_empty', 0);
$handler->override_option('use_ajax', '1');
$handler->override_option('items_per_page', 36);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
'grouping' => '',
'override' => 1,
'sticky' => 0,
'order' => 'asc',
'columns' => array(
'value_1' => 'value_1',
'title' => 'title',
'status' => 'status',
'name' => 'name',
'value' => 'value',
'edit_node_1' => 'edit_node_1',
'delete_node' => 'delete_node',
'edit_node' => 'edit_node',
),
'info' => array(
'value_1' => array(
'sortable' => 1,
'separator' => '',
),
'title' => array(
'sortable' => 1,
'separator' => '',
),
'status' => array(
'sortable' => 0,
'separator' => '',
),
'name' => array(
'sortable' => 1,
'separator' => '',
),
'value' => array(
'sortable' => 0,
'separator' => '',
),
'edit_node_1' => array(
'separator' => '',
),
'delete_node' => array(
'separator' => '',
),
'edit_node' => array(
'separator' => '',
),
),
'default' => 'value_1',
));
$handler = $view->new_display('page', 'Page', 'page');
$handler->override_option('path', 'glossary');
$handler->override_option('menu', array(
'type' => 'none',
'title' => 'Glossary',
'description' => '',
'weight' => '0',
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));
$handler = $view->new_display('attachment', 'Attachment', 'attachment');
$handler->override_option('arguments', array(
'title' => array(
'default_action' => 'summary asc',
'style_plugin' => 'unformatted_summary',
'style_options' => array(
'count' => 0,
'override' => 0,
'items_per_page' => '25',
'inline' => 1,
'separator' => ' | ',
),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 1,
'limit' => '1',
'case' => 'upper',
'path_case' => 'lower',
'transform_dash' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
'default_argument_user' => 0,
'default_argument_fixed' => 'a',
'validate_argument_vocabulary' => array(),
'validate_argument_php' => '',
),
));
$handler->override_option('header', '');
$handler->override_option('attachment_position', 'before');
$handler->override_option('inherit_arguments', 0);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('displays', array(
'default' => 'default',
'page' => 'page',
));

----------------------------------------------------------------------------------
This view does not work:

$view = new view;
$view->name = 'general_member_list';
$view->description = 'List of mbrcck memberships for everyone';
$view->tag = 'mbrcck listing everyone';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
'field_user_id_uid' => array(
'label' => 'NodeRef',
'required' => 0,
'delta' => -1,
'id' => 'field_user_id_uid',
'table' => 'node_data_field_user_id',
'field' => 'field_user_id_uid',
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'title' => array(
'label' => 'Mailing Label',
'link_to_node' => 0,
'exclude' => 1,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'nid' => array(
'label' => 'Nid',
'link_to_node' => 0,
'exclude' => 1,
'id' => 'nid',
'table' => 'node',
'field' => 'nid',
'relationship' => 'none',
),
'type' => array(
'label' => 'Type',
'link_to_node' => 0,
'exclude' => 1,
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'status' => array(
'label' => 'Published',
'type' => 'yes-no',
'not' => 0,
'exclude' => 1,
'id' => 'status',
'table' => 'node',
'field' => 'status',
'relationship' => 'none',
),
'value_2' => array(
'label' => 'Last Name',
'exclude' => 0,
'id' => 'value_2',
'table' => 'profile_values_profile_last_name',
'field' => 'value',
'relationship' => 'field_user_id_uid',
),
'value' => array(
'label' => 'First Name',
'exclude' => 0,
'id' => 'value',
'table' => 'profile_values_profile_first_name',
'field' => 'value',
'relationship' => 'field_user_id_uid',
),
'name' => array(
'label' => 'Login',
'link_to_user' => 1,
'exclude' => 0,
'id' => 'name',
'table' => 'users',
'field' => 'name',
'relationship' => 'field_user_id_uid',
),
'value_1' => array(
'label' => 'Home Phone',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
),
'exclude' => 0,
'id' => 'value_1',
'table' => 'profile_values_profile_home_phone',
'field' => 'value',
'relationship' => 'field_user_id_uid',
),
'field_mem_key_holder_value' => array(
'label' => 'Key Holder',
'link_to_node' => 0,
'label_type' => 'widget',
'format' => 'default',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_mem_key_holder_value',
'table' => 'node_data_field_mem_key_holder',
'field' => 'field_mem_key_holder_value',
'relationship' => 'none',
),
'status_1' => array(
'label' => 'Active',
'type' => 'yes-no',
'not' => 0,
'exclude' => 1,
'id' => 'status_1',
'table' => 'users',
'field' => 'status',
'relationship' => 'none',
),
'mail' => array(
'label' => 'E-mail',
'link_to_user' => '0',
'exclude' => 0,
'id' => 'mail',
'table' => 'users',
'field' => 'mail',
'relationship' => 'field_user_id_uid',
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('arguments', array(
'value' => array(
'default_action' => 'default',
'style_plugin' => 'unformatted_summary',
'style_options' => array(
'count' => 0,
'override' => 0,
'items_per_page' => '25',
'inline' => 1,
'separator' => ' |',
),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 1,
'limit' => '1',
'case' => 'upper',
'path_case' => 'none',
'transform_dash' => 0,
'id' => 'value',
'table' => 'profile_values_profile_last_name',
'field' => 'value',
'override' => array(
'button' => 'Override',
),
'relationship' => 'field_user_id_uid',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => 'a',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'poll' => 0,
'faq' => 0,
'dir_listing' => 0,
'album' => 0,
'image' => 0,
'picasa_album' => 0,
'picasa_photo' => 0,
'product' => 0,
'membership' => 0,
'merchandise' => 0,
'product_kit' => 0,
'panel' => 0,
'admin_log' => 0,
'announcement_form' => 0,
'book' => 0,
'bug_report' => 0,
'digital_projector_reservation' => 0,
'event' => 0,
'lawn_mow' => 0,
'library_book' => 0,
'mbrcck' => 0,
'mem_proc_page' => 0,
'newsletter_archive' => 0,
'page' => 0,
'starparty_proc_page' => 0,
'story' => 0,
'stras_signup' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'7' => 0,
'6' => 0,
'4' => 0,
'5' => 0,
'9' => 0,
'8' => 0,
'1' => 0,
'3' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'5' => 0,
'3' => 0,
'6' => 0,
'4' => 0,
),
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'mbrcck' => 'mbrcck',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
'status_1' => array(
'operator' => '=',
'value' => 1,
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'status_1',
'table' => 'users',
'field' => 'status',
'relationship' => 'field_user_id_uid',
),
));
$handler->override_option('access', array(
'type' => 'role',
'role' => array(
'2' => 2,
),
));
$handler->override_option('title', 'Membership Listing');
$handler->override_option('header_format', '2');
$handler->override_option('header_empty', 0);
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 30);
$handler->override_option('use_pager', '1');
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
'grouping' => '',
'override' => 1,
'sticky' => 0,
'order' => 'asc',
'columns' => array(
'title' => 'title',
'nid' => 'nid',
'type' => 'type',
'status' => 'status',
'value_2' => 'value_2',
'value' => 'value',
'name' => 'name',
'value_1' => 'value_1',
'field_mem_key_holder_value' => 'field_mem_key_holder_value',
'status_1' => 'status_1',
'mail' => 'mail',
),
'info' => array(
'title' => array(
'sortable' => 0,
'separator' => '',
),
'nid' => array(
'sortable' => 0,
'separator' => '',
),
'type' => array(
'sortable' => 0,
'separator' => '',
),
'status' => array(
'sortable' => 0,
'separator' => '',
),
'value_2' => array(
'sortable' => 1,
'separator' => '',
),
'value' => array(
'sortable' => 0,
'separator' => '',
),
'name' => array(
'sortable' => 1,
'separator' => '',
),
'value_1' => array(
'sortable' => 0,
'separator' => '',
),
'field_mem_key_holder_value' => array(
'sortable' => 0,
'separator' => '',
),
'status_1' => array(
'sortable' => 0,
'separator' => '',
),
'mail' => array(
'sortable' => 0,
'separator' => '',
),
),
'default' => 'value_2',
));
$handler->override_option('row_options', array(
'inline' => array(
'title' => 'title',
'edit_node' => 'edit_node',
'delete_node' => 'delete_node',
'nid' => 'nid',
),
'separator' => '   ',
));
$handler = $view->new_display('panel_pane', 'Panel pane', 'panel_pane_1');
$handler->override_option('pane_title', '');
$handler->override_option('pane_description', '');
$handler->override_option('pane_category', array(
'name' => 'View panes',
'weight' => 0,
));
$handler->override_option('allow', array(
'use_pager' => 'use_pager',
'items_per_page' => 'items_per_page',
'offset' => 0,
'link_to_view' => 0,
'more_link' => 0,
'path_override' => 0,
));
$handler->override_option('argument_input', array());
$handler->override_option('link_to_view', 0);
$handler->override_option('inherit_panels_path', 0);
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('header', 'Only local images are allowed.');
$handler->override_option('header_empty', 1);
$handler->override_option('path', 'AllMembership');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
));
$handler = $view->new_display('attachment', 'Attachment', 'attachment_1');
$handler->override_option('arguments', array(
'value' => array(
'default_action' => 'summary asc',
'style_plugin' => 'unformatted_summary',
'style_options' => array(
'count' => 0,
'override' => 0,
'items_per_page' => '25',
'inline' => 1,
'separator' => ' |',
),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'glossary' => 1,
'limit' => '1',
'case' => 'upper',
'path_case' => 'lower',
'transform_dash' => 0,
'id' => 'value',
'table' => 'profile_values_profile_last_name',
'field' => 'value',
'override' => array(
'button' => 'Use default',
),
'relationship' => 'field_user_id_uid',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'poll' => 0,
'faq' => 0,
'dir_listing' => 0,
'album' => 0,
'image' => 0,
'picasa_album' => 0,
'picasa_photo' => 0,
'product' => 0,
'membership' => 0,
'merchandise' => 0,
'product_kit' => 0,
'panel' => 0,
'admin_log' => 0,
'announcement_form' => 0,
'book' => 0,
'bug_report' => 0,
'digital_projector_reservation' => 0,
'event' => 0,
'lawn_mow' => 0,
'library_book' => 0,
'mbrcck' => 0,
'mem_proc_page' => 0,
'newsletter_archive' => 0,
'page' => 0,
'starparty_proc_page' => 0,
'story' => 0,
'stras_signup' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'7' => 0,
'6' => 0,
'4' => 0,
'5' => 0,
'9' => 0,
'8' => 0,
'1' => 0,
'3' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_php' => '',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'5' => 0,
'3' => 0,
'6' => 0,
'4' => 0,
),
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
),
));
$handler->override_option('attachment_position', 'before');
$handler->override_option('inherit_arguments', 0);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('displays', array(
'default' => 'default',
'page_1' => 'page_1',
'panel_pane_1' => 0,
));

eridanibrew’s picture

More information (I don't know what info the maintainer is waiting for:)

Playing around in the code with print statements and such, just trying to see where things might go.

In the file js/ajax.js, I find that the code uses Drupal.Views.Ajax.previewResponse when I am in preview mode in editing the view. This is when the view works correctly.

It seems to me, for no particularly good reason, that the view in normal operation should be using the Drupal.Views.Ajax.ajaxResponse function. However, it doesn't seem to do this (an alert function call there is not reached).

So, I turned off Ajax usage in the Default view. Now the views work correctly; selecting the Glossary letter correctly redraws the view with the correct items.

So, it looks to me like the Ajax is not correctly connected somehow.

Of course, I know nothing about Ajax so I don't know how this would work:(

It may be that the note that appears when turning Ajax on/off in the view

"If set, this view will use an AJAX mechanism for paging, table sorting and exposed filters. This means the entire page will not refresh. It is not recommended that you use this if this view is the main content of the page as it will prevent deep linking to specific pages, but it is very useful for side content."

may be something that is supposed to mean something to me; I don't know what deep linking is. However, the one view still works with Ajax enabled...

Maybe this helps somehow:)

brew

strauch’s picture

yes thats it, i deactivated Ajax and it works again.

Thanks brew.

merlinofchaos’s picture

Status: Postponed (maintainer needs more info) » Active

That's the kind of information I was waiting for. I'll see what I can figure out here.

mediamash’s picture

i deactivated Ajax and it works again.

this does the trick, but is there a solution for this issue yet?

akhodakovskiy’s picture

Same issue here, subscribing to see updates.
Thanks

esclapes’s picture

subscribing

sdk’s picture

subscribing

liquidcms’s picture

latest Views.. disabled AJAX to get glossary to work

delmarr’s picture

Version: 6.x-2.5 » 6.x-2.x-dev

I currently have the glossary attachment visible only on the first page of my directory, when I click on a letter it takes me to the listing of (D) but the glossary gets removed. I've been following this thread and it doesn't seem like turning off ajax works for me.

I'm currently using
views 6.x-2.x-dev

i have ajax off

$view = new view;
$view->name = 'artist_directory';
$view->description = 'Glossary views';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'field_pop_image_fid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'medium-cropped_linked',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_pop_image_fid',
    'table' => 'node_data_field_pop_image',
    'field' => 'field_pop_image_fid',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 1,
      'text' => '<h3>[title]</h3>',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'title' => array(
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
  ),
));
$handler->override_option('filters', array(
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'profiles' => 'profiles',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'term_node_tid_depth' => array(
    'operator' => 'or',
    'value' => array(
      '0' => '190',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'type' => 'textfield',
    'limit' => TRUE,
    'vid' => '13',
    'depth' => '0',
    'id' => 'term_node_tid_depth',
    'table' => 'node',
    'field' => 'term_node_tid_depth',
    'hierarchy' => 0,
    'relationship' => 'none',
    'reduce_duplicates' => 0,
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'none',
));
$handler->override_option('items_per_page', 0);
$handler->override_option('use_pager', 'mini');
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
  'grouping' => '',
  'columns' => '3',
  'alignment' => 'horizontal',
));
$handler->override_option('row_options', array(
  'inline' => array(),
  'separator' => '',
  'hide_empty' => 1,
));
$handler = $view->new_display('page', 'Artist Directory', 'page_1');
$handler->override_option('sorts', array(
  'title' => array(
    'order' => 'ASC',
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'ignore',
    'style_plugin' => 'default_summary',
    'style_options' => array(),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'fixed',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'not found',
    'glossary' => 0,
    'limit' => '0',
    'case' => 'none',
    'path_case' => 'none',
    'transform_dash' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '5' => 0,
      '6' => 0,
      '3' => 0,
    ),
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_fixed' => '',
    'default_argument_user' => 0,
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'faq' => 0,
      'feed' => 0,
      'feed_item' => 0,
      'alert' => 0,
      'content_event' => 0,
      'content_promoter' => 0,
      'content_ticket_vendor' => 0,
      'content_venue' => 0,
      'craft_seller' => 0,
      'image_gallery' => 0,
      'music_event' => 0,
      'page' => 0,
      'popcast' => 0,
      'profiles' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '12' => 0,
      '13' => 0,
      '10' => 0,
      '14' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_node_flag_name' => '*relationship*',
    'validate_argument_node_flag_test' => 'flaggable',
    'validate_argument_node_flag_id_type' => 'id',
    'validate_argument_user_flag_name' => '*relationship*',
    'validate_argument_user_flag_test' => 'flaggable',
    'validate_argument_user_flag_id_type' => 'id',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('path', 'directory/artists');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler = $view->new_display('attachment', 'Attachment', 'attachment_1');
$handler->override_option('sorts', array());
$handler->override_option('arguments', array(
  'title' => array(
    'default_action' => 'summary asc',
    'style_plugin' => 'unformatted_summary',
    'style_options' => array(
      'count' => 1,
      'override' => 0,
      'items_per_page' => '25',
      'inline' => 1,
      'separator' => '',
    ),
    'wildcard' => 'all',
    'wildcard_substitution' => 'All',
    'title' => '',
    'breadcrumb' => '',
    'default_argument_type' => 'php',
    'default_argument' => '',
    'validate_type' => 'none',
    'validate_fail' => 'ignore',
    'glossary' => 1,
    'limit' => '1',
    'case' => 'upper',
    'path_case' => 'lower',
    'transform_dash' => 1,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '5' => 0,
      '6' => 0,
      '3' => 0,
    ),
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => 'return FALSE;',
    'validate_argument_node_type' => array(
      'faq' => 0,
      'feed' => 0,
      'feed_item' => 0,
      'alert' => 0,
      'content_event' => 0,
      'content_promoter' => 0,
      'content_ticket_vendor' => 0,
      'content_venue' => 0,
      'craft_seller' => 0,
      'image_gallery' => 0,
      'music_event' => 0,
      'page' => 0,
      'popcast' => 0,
      'profiles' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '12' => 0,
      '13' => 0,
      '10' => 0,
      '14' => 0,
    ),
    'validate_argument_type' => 'tid',
    'validate_argument_transform' => 0,
    'validate_user_restrict_roles' => 0,
    'validate_argument_node_flag_name' => '*relationship*',
    'validate_argument_node_flag_test' => 'flaggable',
    'validate_argument_node_flag_id_type' => 'id',
    'validate_argument_user_flag_name' => '*relationship*',
    'validate_argument_user_flag_test' => 'flaggable',
    'validate_argument_user_flag_id_type' => 'id',
    'validate_argument_php' => '',
  ),
));
$handler->override_option('attachment_position', 'before');
$handler->override_option('inherit_arguments', TRUE);
$handler->override_option('inherit_exposed_filters', FALSE);
$handler->override_option('inherit_pager', 1);
$handler->override_option('render_pager', 1);
$handler->override_option('displays', array(
  'page_1' => 'page_1',
  'default' => 0,
));

thank-you for your help.

xmacinfo’s picture

Version: 6.x-2.x-dev » 6.x-2.8

If your glossary gets you to a new page where the glossary bar is not there means that the glossary is not properly attached to your view. The normal behavior would be to go to another page and where only the last part of the URL would be modified.

For example:

http://example.com/terms/a
http://example.com/terms/b
http://example.com/terms/z
etc.

Try to access a page directly from the URL to test out the non-ajax version of your glossary. If it's not working, it would look like that you do have another problem that is not related to turning off Ajax, which is broken nonetheless with the current Views version.

I confirm that 6.x-2.8 use Ajax bug is present.

We may need to create a new issue for the Ajax thing, or modify this issue title according to the current problem.

xmacinfo’s picture

Status: Active » Fixed

I can confirm that ajax works again with Views 6.x-2.10 using the glossary views attachement.

Let's mark this fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

torotil’s picture

I still see this issue in 2.12:

I use a slightly modified glossary view that is limited to a certain content type. It works for the first 2 clicks on any letter in the index, but if you click on the third letter the index disappears. Everything works as expected as soon as AJAX is disabled.

It seems likely that this is a residual of the original bug, but I'm happy to open a new one if you like.

xmacinfo’s picture

@torotil: Please try to duplicate your problem on a new install. If you still have a problem, feel free to open a new issue.

hanskuiters’s picture

After spending a few hours on this issue, attachments picking up arguments although 'inherit arguments' is set to 'no', I finnaly found the solution. Because I couldn't find it in this topic I post it.

- Edit your view
- Select attachments
- Set 'Inherit arguments' to no
- Click on 'Arguments'
- Click the button 'Override'

Now you can set different arguments voor page and attachment