Hi people....nice module...

I have a problem with the arrangement of images in "My Galleries". I want to make it in grid style ... can someone help me?

See the attached file

Thank you!

CommentFileSizeAuthor
#2 inside.JPG46.64 KBbrzbg
problem.JPG30.6 KBbrzbg

Comments

Rik’s picture

See http://drupal.org/node/544748 (CSS to Display Gallery Thumbnail Page in a Grid (2 examples))

brzbg’s picture

StatusFileSize
new46.64 KB

Yeah i try like that but only fixes the inside images ... see the attach

Rik’s picture

Thats because you have defined a fixed width for those images (which is alright, it makes the grid look cleaner) but now the browser is resizing your images which you do not want. You might want to checkout ImageCache and define how thumbnails should be handled (Crop, resizing)

brzbg’s picture

You don't understand me :) .... my problem is that when i click on "My Galleries" button it appear the first attachment ... there are two galleries ... so when i click and enter in the gallery everything is ok... so i want the first attachment with the galleries to look like the second with the images :)

Rik’s picture

I see, then I think you need to create a custom view. Basically what you want is something like this: http://www.hartemink-interieurbouw.nl/zakelijk-interieur the images you see are galleries.

brzbg’s picture

Yeah that is what i want :) ... so how can i create it ... ? :)

Thanks

Rik’s picture

I did it by creating a custom view, are you familiair with the Views module? You should look into that. Luckily you can import a view so here is the export of the page you just saw and you can start off with that:

$view = new view;
$view->name = 'zakelijk_interieur_galleries';
$view->description = '';
$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' => '',
    'alter' => array(
      'alter_text' => 1,
      'text' => '<strong>[title]</strong>',
      '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,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Overschrijf',
    ),
  ),
  'gid' => 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' => 1,
    'node_gallery_setting' => 'node_gallery_gallery',
    'exclude' => 0,
    'id' => 'gid',
    'table' => 'node_galleries_gallery',
    'field' => 'gid',
    'relationship' => 'none',
    'override' => array(
      'button' => 'Overschrijf',
    ),
  ),
));
$handler->override_option('filters', array(
  'tid' => array(
    'operator' => 'or',
    'value' => array(
      '9' => '9',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'type' => 'select',
    'limit' => TRUE,
    'vid' => '9',
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'hierarchy' => 0,
    'relationship' => 'none',
    'reduce_duplicates' => 0,
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('cache', array(
  'type' => 'time',
  'results_lifespan' => '3600',
  'output_lifespan' => '3600',
));
$handler->override_option('items_per_page', 0);
$handler->override_option('distinct', 1);
$handler->override_option('style_plugin', 'grid');
$handler->override_option('style_options', array(
  'grouping' => '',
  'columns' => '4',
  'alignment' => 'horizontal',
));
$handler->override_option('row_options', array(
  'inline' => array(),
  'separator' => '',
  'hide_empty' => 0,
));
$handler = $view->new_display('panel_pane', 'Content 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' => FALSE,
  'items_per_page' => FALSE,
  'offset' => FALSE,
  'link_to_view' => FALSE,
  'more_link' => FALSE,
  'path_override' => FALSE,
  'title_override' => FALSE,
  'exposed_form' => FALSE,
));
$handler->override_option('argument_input', array());
$handler->override_option('link_to_view', 0);
$handler->override_option('inherit_panels_path', 0);
brzbg’s picture

Thank you ... i will try later ... thanks again :)

kmonty’s picture

Status: Active » Closed (fixed)
sayansk’s picture

When you import a package given this error:

Display plug panel_pane impossible.
Unable to import the view.

Help please