Just a note that I was able to seamlessly integrate Views Galleriffic with Node Gallery 3.x without any code changes, and it is fricking sweet! All I did was to add a page display to node_gallery_gallery_image_views, and followed the directions supplied with views_galleriffic.

We should add this as a recommended/compatible module.

Screenshot attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

justintime’s picture

Status: Active » Closed (fixed)

Closing this - we don't need any docs, using the docs from views_galleriffic's project is all you need.

When 3.0 is released, maybe we should put a section of "Known compatible display modules" on the project page.

elpino’s picture

Version: 6.x-3.x-dev » 6.x-3.0-alpha2
Status: Closed (fixed) » Active

Wouldn't a Page display require a path be setup? What if I have multiple node_gallery_gallery nodes?

I'm feeling quite frustrated that neither Node Gallery nor Views Galleriffic have documentation on how to integrate one with the other, at least not for Node Gallery 3.x.

Being that Node Gallery Display is a module only available for the 2.x version, there's no clear way to know how to set this up.

I've figured out that in the gallery relationship setup one can choose the view display for Teaser and Full Page views of the gallery node. This display being taken from the node_gallery_gallery_image_views Views as you previously stated... but should it be a Page display or an attachment display?

If there is documentation for other add on modules I think Views Galleriffic should have one too.

justintime’s picture

@elpino: sorry for your frustration. You should be able to pretty much follow the docs for Views Gallerific and get there, but if you need a jumpstart, try importing this view. You need to have views_galleriffic installed, and it assumes you haven't changed the content types around.

Also, I wouldn't run live with this, because ultimately, this view should be a new display off of your node_gallery_gallery_image_views. Import it, poke at it, and then duplicate it.


$view = new view;
$view->name = 'node_gallery_gallery_image_views';
$view->description = 'Views of images meant to be attached to a gallery parent view';
$view->tag = 'node_gallery';
$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', 'Default', 'default');
$handler->override_option('relationships', array(
  'gid' => array(
    'label' => 'Parent Gallery',
    'required' => 1,
    'id' => 'gid',
    'table' => 'node_gallery_images',
    'field' => 'gid',
    'relationship' => 'none',
  ),
));
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 1,
      'max_length' => '10',
      'word_boundary' => 0,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'field_node_gallery_image_fid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 0,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'node-gallery-thumbnail_linked',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_node_gallery_image_fid',
    'table' => 'node_data_field_node_gallery_image',
    'field' => 'field_node_gallery_image_fid',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'weight' => array(
    'order' => 'ASC',
    'id' => 'weight',
    'table' => 'node_gallery_images',
    'field' => 'weight',
    'relationship' => 'none',
  ),
  'created' => array(
    'order' => 'DESC',
    'granularity' => 'second',
    'id' => 'created',
    'table' => 'node',
    'field' => 'created',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'nid' => array(
    'order' => 'DESC',
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'relationship' => 'none',
  ),
));
$handler->override_option('arguments', array(
  'nid' => array(
    'default_action' => 'not found',
    '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',
    'break_phrase' => 0,
    'not' => 0,
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'validate_user_argument_type' => 'uid',
    'validate_user_roles' => array(
      '2' => 0,
      '4' => 0,
      '3' => 0,
    ),
    'relationship' => 'gid',
    'default_options_div_prefix' => '',
    'default_argument_user' => 0,
    'default_argument_fixed' => '',
    'default_argument_php' => '',
    'validate_argument_node_type' => array(
      'product' => 0,
      'photograph' => 0,
      'product_kit' => 0,
      'cck_gallery' => 0,
      'cck_image' => 0,
      'event' => 0,
      'node_gallery_gallery' => 0,
      'node_gallery_image' => 0,
      'page' => 0,
      'story' => 0,
    ),
    'validate_argument_node_access' => 0,
    'validate_argument_nid_type' => 'nid',
    'validate_argument_vocabulary' => array(
      '1' => 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('filters', array(
  'status' => array(
    'operator' => '=',
    'value' => '1',
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
));
$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', '0');
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
  'grouping' => '',
  'columns' => '6',
  'alignment' => 'horizontal',
));
$handler = $view->new_display('page', 'View all image thumbnails', 'page_1');
$handler->override_option('path', 'gallery_grid/%');
$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('page', 'View images teaser', 'page_2');
$handler->override_option('items_per_page', 6);
$handler->override_option('use_pager', FALSE);
$handler->override_option('path', 'gallery_image_teaser/%');
$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('page', 'View images teaser with AJAX pager', 'page_3');
$handler->override_option('use_ajax', TRUE);
$handler->override_option('items_per_page', 6);
$handler->override_option('use_pager', '1');
$handler->override_option('path', 'gallery_image_teaser_ajax/%');
$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('page', 'View all image thumbnails -> Lightbox2 display', 'page_4');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 0,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'field_node_gallery_image_fid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 0,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'imagefield__lightbox2__node-gallery-thumbnail__node-gallery-display',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_node_gallery_image_fid',
    'table' => 'node_data_field_node_gallery_image',
    'field' => 'field_node_gallery_image_fid',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
));
$handler->override_option('path', 'gallery_lightbox2/%');
$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('page', 'View images teaser (cover only)', 'page_5');
$handler->override_option('relationships', array(
  'gid' => array(
    'label' => 'Parent Gallery',
    'required' => 1,
    'id' => 'gid',
    'table' => 'node_gallery_images',
    'field' => 'gid',
    'relationship' => 'none',
  ),
  'cover_image' => array(
    'label' => 'Gallery Cover Image',
    'required' => 0,
    'id' => 'cover_image',
    'table' => 'node_gallery_galleries',
    'field' => 'cover_image',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'gid',
  ),
));
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 1,
      'max_length' => '10',
      'word_boundary' => 0,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'cover_image',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
  'field_node_gallery_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' => 0,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'node-gallery-thumbnail_linked',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_node_gallery_image_fid',
    'table' => 'node_data_field_node_gallery_image',
    'field' => 'field_node_gallery_image_fid',
    'relationship' => 'cover_image',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
));
$handler->override_option('items_per_page', 1);
$handler->override_option('path', 'gallery_image_teaser_cover/%');
$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('page', 'View cover image', 'page_6');
$handler->override_option('relationships', array(
  'gid' => array(
    'label' => 'Parent Gallery',
    'required' => 1,
    'id' => 'gid',
    'table' => 'node_gallery_images',
    'field' => 'gid',
    'relationship' => 'none',
  ),
  'cover_image' => array(
    'label' => 'Gallery Cover Image',
    'required' => 0,
    'id' => 'cover_image',
    'table' => 'node_gallery_galleries',
    'field' => 'cover_image',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'gid',
  ),
));
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'target' => '',
      'help' => '',
      'trim' => 1,
      'max_length' => '10',
      'word_boundary' => 0,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'cover_image',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
  'field_node_gallery_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' => 0,
      'ellipsis' => 1,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'node-gallery-thumbnail_linked',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_node_gallery_image_fid',
    'table' => 'node_data_field_node_gallery_image',
    'field' => 'field_node_gallery_image_fid',
    'relationship' => 'cover_image',
    'override' => array(
      'button' => 'Use default',
    ),
  ),
));
$handler->override_option('items_per_page', 1);
$handler->override_option('path', 'gallery_cover/%');
$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('page', 'Image Sort', 'page_7');
$handler->override_option('fields', array(
  'nid' => array(
    'label' => 'Nid',
    '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,
      'html' => 0,
      'strip_tags' => 0,
    ),
    'empty' => '',
    'hide_empty' => 0,
    'empty_zero' => 0,
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'nid',
    'table' => 'node',
    'field' => 'nid',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('path', 'ng_sort');
$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('page', 'views_galleriffic', 'page_8');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'link_class' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 1,
      'max_length' => '10',
      'word_boundary' => 0,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 1,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Override',
    ),
  ),
  'body' => 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,
    'exclude' => 0,
    'id' => 'body',
    'table' => 'node_revisions',
    'field' => 'body',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'field_node_gallery_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' => 'node-gallery-galleriffic-display_url',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_node_gallery_image_fid',
    'table' => 'node_data_field_node_gallery_image',
    'field' => 'field_node_gallery_image_fid',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
  'field_node_gallery_image_fid_1' => 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' => 'node-gallery-galleriffic-thumbnail_url',
    'multiple' => array(
      'group' => TRUE,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => FALSE,
    ),
    'exclude' => 0,
    'id' => 'field_node_gallery_image_fid_1',
    'table' => 'node_data_field_node_gallery_image',
    'field' => 'field_node_gallery_image_fid',
    'override' => array(
      'button' => 'Use default',
    ),
    'relationship' => 'none',
  ),
));
$handler->override_option('style_plugin', 'views_galleriffic');
$handler->override_option('style_options', array(
  'css' => 'true',
  'delay' => '3000',
  'numbthumbs' => '10',
  'pager_top' => '',
  'pager_bottom' => 'true',
  'renderss' => 'true',
  'rendernav' => 'true',
  'playtext' => 'Play',
  'pausetext' => 'Pause',
  'prevlink' => 'Previous',
  'nextlink' => 'Next',
  'nextpage' => 'Next >',
  'prevpage' => '< Prev',
  'start' => '',
));
$handler->override_option('row_plugin', 'gallerifficfields');
$handler->override_option('row_options', array(
  'title_field' => 'title',
  'slide_field' => 'field_node_gallery_image_fid',
  'thumbnail_field' => 'field_node_gallery_image_fid_1',
  'description_field' => 'body',
));
$handler->override_option('path', 'galleriffic/%');
$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,
));
elpino’s picture

Thanks for the reply, although I managed to figure it out myself. I'm sharing this in case anyone else out there looking for some answers finds this.

I figured out the best approach was, as you say, to make a new display in node_gallery_gallery_image_views, in my case an attachment display. This is because in the node gallery relationship setup you can select the display to be used in full node view.

The only difference to the available views is that instead of using the 1 field of 'Content: Gallery Image (field_node_gallery_image)' I used 2 (one for thumbnails and the other for the slide) as defined in the Views Galleriffic documentation), changing the format so it displays the URL.

Now, for the title and description, it should be noted not to use the field from 'Content: Gallery Image - data' because those are specific to the image file field which are not used with Node Gallery. Instead use Node: Title and Node: Body which are in fact the Title and Caption of the Gallery Image node.

justintime’s picture

Component: Documentation » Howto/FAQ/Example
Status: Active » Fixed

updating component

Status: Fixed » Closed (fixed)

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