Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#15 | fix_glossary.patch | 832 bytes | merlinofchaos |
#6 | glossary-workaround.jpg | 49.14 KB | gp.mazzola |
#4 | views2.2-glossary.png | 11.49 KB | coltrane |
after.jpg | 176.29 KB | moonwatcher | |
before.jpg | 143.85 KB | moonwatcher |
Comments
Comment #1
coltraneI 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.
Comment #2
coltraneMarked #349126: Broken Alpha Bar a duplicate of this. OP there points to a live example:
Comment #3
coltraneI 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.
Comment #4
coltraneReproduced 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.
Comment #5
CloudCuckoo CreditAttribution: CloudCuckoo commentedMarked #349475: Attachement views and glossary page (originally a support request) as a duplicate of this.
Comment #6
gp.mazzola CreditAttribution: gp.mazzola commentedHi 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:
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.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedGave it a try and seems to work fine.
Hopefully Merlin will confirm or offer a different option after he finishes his 'Mince Pies' :)
Comment #8
caromill CreditAttribution: caromill commentedWorks just fine for me too. Thanks! :-)
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commentedIt fixes the issue of duplicates for me but the letter bar is still disappearing from the view when clicking on a letter...
Comment #10
gp.mazzola CreditAttribution: gp.mazzola commented@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
Comment #11
Anonymous (not verified) CreditAttribution: Anonymous commentedstupid me, I confused
Action to take if argument does not validate
with
Action to take if argument is not present
Thanks, working now.
Comment #12
ugerhard CreditAttribution: ugerhard commentedThis seems to be a problem with Attachment views picking up the argument from their parent view, even if "Inherit arguments" is set to "no".
Comment #13
ugerhard CreditAttribution: ugerhard commentedI did some digging. I think the problem stems from pre_execute(), especially the following lines in that method (line 852 in view.inc):
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.Comment #14
xmacinfoThanks 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.
Comment #15
merlinofchaos CreditAttribution: merlinofchaos commentedThis 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).
Comment #16
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks a lot! Wouldn't this be worth a 2.3 release so people had a nice upgrade path?
Comment #17
merlinofchaos CreditAttribution: merlinofchaos commentedI'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.
Comment #19
strauch CreditAttribution: strauch commentedComment #20
alexpottSorry if this is known already but just to point out that this patch didn't make it into Views 2.3
Comment #21
strauch CreditAttribution: strauch commentedThe 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
Comment #22
coltraneI'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?
Comment #23
strauch CreditAttribution: strauch commentedhi coltrane,
yes i can confirm, it doesn't work in views 2.3.
Comment #24
merlinofchaos CreditAttribution: merlinofchaos commentedalexpott: 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.
Comment #25
alexpottmerlinofchaos: 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.
Comment #26
strauch CreditAttribution: strauch commentedon 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?
Comment #27
strauch CreditAttribution: strauch commentedhi,
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
Comment #28
eridanibrew CreditAttribution: eridanibrew commentedI 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', '
');
$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', '');
$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,
));
Comment #29
eridanibrew CreditAttribution: eridanibrew commentedMore 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
Comment #30
strauch CreditAttribution: strauch commentedyes thats it, i deactivated Ajax and it works again.
Thanks brew.
Comment #31
merlinofchaos CreditAttribution: merlinofchaos commentedThat's the kind of information I was waiting for. I'll see what I can figure out here.
Comment #32
mediamash CreditAttribution: mediamash commentedthis does the trick, but is there a solution for this issue yet?
Comment #33
akhodakovskiy CreditAttribution: akhodakovskiy commentedSame issue here, subscribing to see updates.
Thanks
Comment #34
esclapes CreditAttribution: esclapes commentedsubscribing
Comment #35
sdk CreditAttribution: sdk commentedsubscribing
Comment #36
liquidcms CreditAttribution: liquidcms commentedlatest Views.. disabled AJAX to get glossary to work
Comment #37
delmarr CreditAttribution: delmarr commentedI 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
thank-you for your help.
Comment #38
xmacinfoIf 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.
Comment #39
xmacinfoI can confirm that ajax works again with Views 6.x-2.10 using the glossary views attachement.
Let's mark this fixed.
Comment #41
torotil CreditAttribution: torotil commentedI 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.
Comment #42
xmacinfo@torotil: Please try to duplicate your problem on a new install. If you still have a problem, feel free to open a new issue.
Comment #43
HansKuiters CreditAttribution: HansKuiters commentedAfter 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