Fix for Node file gallery

  1. $view = new view;
  2. $view->name = 'node_image_gallery';
  3. $view->description = '';
  4. $view->tag = '';
  5. $view->view_php = '';
  6. $view->base_table = 'node';
  7. $view->is_cacheable = FALSE;
  8. $view->api_version = 2;
  9. $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
  10. $handler = $view->new_display('default', 'Defaults', 'default');
  11. $handler->override_option('fields', array(
  12.   'field_story_images_fid' => array(
  13.     'label' => '',
  14.     'alter' => array(
  15.       'alter_text' => 0,
  16.       'text' => '',
  17.       'make_link' => 0,
  18.       'path' => '',
  19.       'link_class' => '',
  20.       'alt' => '',
  21.       'prefix' => '',
  22.       'suffix' => '',
  23.       'target' => '',
  24.       'help' => '',
  25.       'trim' => 0,
  26.       'max_length' => '',
  27.       'word_boundary' => 1,
  28.       'ellipsis' => 1,
  29.       'html' => 0,
  30.       'strip_tags' => 0,
  31.     ),
  32.     'empty' => '',
  33.     'hide_empty' => 0,
  34.     'empty_zero' => 0,
  35.     'link_to_node' => 0,
  36.     'label_type' => 'none',
  37.     'format' => 'gallery_photo_thumbnail_tiny_imagelink',
  38.     'multiple' => array(
  39.       'group' => 0,
  40.       'multiple_number' => '',
  41.       'multiple_from' => '',
  42.       'multiple_reversed' => 0,
  43.     ),
  44.     'exclude' => 0,
  45.     'id' => 'field_story_images_fid',
  46.     'table' => 'node_data_field_story_images',
  47.     'field' => 'field_story_images_fid',
  48.     'relationship' => 'none',
  49.   ),
  50. ));
  51. $handler->override_option('arguments', array(
  52.   'nid' => array(
  53.     'default_action' => 'empty',
  54.     'style_plugin' => 'default_summary',
  55.     'style_options' => array(),
  56.     'wildcard' => 'all',
  57.     'wildcard_substitution' => 'All',
  58.     'title' => '',
  59.     'breadcrumb' => '',
  60.     'default_argument_type' => 'fixed',
  61.     'default_argument' => '',
  62.     'validate_type' => 'node',
  63.     'validate_fail' => 'empty',
  64.     'break_phrase' => 0,
  65.     'not' => 0,
  66.     'id' => 'nid',
  67.     'table' => 'node',
  68.     'field' => 'nid',
  69.     'validate_user_argument_type' => 'uid',
  70.     'validate_user_roles' => array(
  71.       '2' => 0,
  72.       '3' => 0,
  73.       '4' => 0,
  74.     ),
  75.     'relationship' => 'none',
  76.     'default_options_div_prefix' => '',
  77.     'default_argument_fixed' => '',
  78.     'default_argument_user' => 0,
  79.     'default_argument_php' => '',
  80.     'validate_argument_node_type' => array(
  81.       'story' => 'story',
  82.       'gallery' => 0,
  83.       'photo' => 0,
  84.       'news' => 0,
  85.       'page' => 0,
  86.     ),
  87.     'validate_argument_node_access' => 1,
  88.     'validate_argument_nid_type' => 'nid',
  89.     'validate_argument_vocabulary' => array(),
  90.     'validate_argument_type' => 'tid',
  91.     'validate_argument_transform' => 0,
  92.     'validate_user_restrict_roles' => 0,
  93.     'validate_argument_node_flag_name' => '*relationship*',
  94.     'validate_argument_node_flag_test' => 'flaggable',
  95.     'validate_argument_node_flag_id_type' => 'id',
  96.     'validate_argument_user_flag_name' => '*relationship*',
  97.     'validate_argument_user_flag_test' => 'flaggable',
  98.     'validate_argument_user_flag_id_type' => 'id',
  99.     'validate_argument_php' => '',
  100.   ),
  101. ));
  102. $handler->override_option('filters', array(
  103.   'type' => array(
  104.     'operator' => 'in',
  105.     'value' => array(
  106.       'story' => 'story',
  107.     ),
  108.     'group' => '0',
  109.     'exposed' => FALSE,
  110.     'expose' => array(
  111.       'operator' => FALSE,
  112.       'label' => '',
  113.     ),
  114.     'id' => 'type',
  115.     'table' => 'node',
  116.     'field' => 'type',
  117.     'relationship' => 'none',
  118.   ),
  119. ));
  120. $handler->override_option('access', array(
  121.   'type' => 'none',
  122. ));
  123. $handler->override_option('cache', array(
  124.   'type' => 'none',
  125. ));
  126. $handler->override_option('row_options', array(
  127.   'inline' => array(
  128.     'field_story_images_fid' => 'field_story_images_fid',
  129.   ),
  130.   'separator' => '',
  131.   'hide_empty' => 0,
  132. ));
  133. $handler = $view->new_display('node_content', 'Node images', 'node_content_1');
  134. $handler->override_option('types', array(
  135.   'story' => 'story',
  136. ));
  137. $handler->override_option('modes', array(
  138.   '0' => 'full',
  139. ));
  140. $handler->override_option('argument_mode', 'nid');
  141. $handler->override_option('default_argument', '');

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.