Hi

In the settimngs for "All galleries", you can set how many rows & columns are on individual gallery pages.
I would like however, to do the same on the /galleries page. I currently have one long column with 6 galleries but would like to limit this to 3 or 4 per column per page. This is not only because with my current theme, this does not look nice, but it would be better to spread the current content on the page(s).

Is there any way to change this?

Regards

Comments

jamc17’s picture

Hello lionheart8 you can do it in settings->audiovisual media->gallery settings->"All galleries" layout settings

lionheart8’s picture

Hi,
Thanks for the response.
Actually, that is what I thought, but it does not help.
I discovered, though that this problem does not turn up if I use other themes, including Bartik, Acquia Prosper & Slate.
I assume the problem is related to the Blue Masters theme.
Regards

mjh2901’s picture

I can verify the issue exists for me with the Blue Masters theme. They line up top to bottom instead of left to right and the box sometimes is square and sometimes stretches into a rectangle. I think its Blue Masters that is funky. Shame its a great dark theme for image galleries.

mjh2901’s picture

I can verify the issue exists for me with the Blue Masters theme. They line up top to bottom instead of left to right and the box sometimes is square and sometimes stretches into a rectangle. I think its Blue Masters that is funky. Shame its a great dark theme for image galleries.

lionheart8’s picture

Hi
The problem affects some other themes as well (such as Omega starter kit xthml, solution => http://drupal.org/node/1122730).
For Bluemasters, I got it solved by following instructions in this post => http://drupal.org/node/1120694

Regards

yookoala’s picture

Version: 7.x-1.0-beta4 » 7.x-1.0-beta7

Hi,

I'm using media-gallery-7.x-1.0-beta7 and the problem is still here.
The site I'm working has a customized theme.
I believe that is not a theme specific problem.

Regards,
Koala

yookoala’s picture

Category: support » bug

I found that the hook_menu_alter() trick is not working for my installation. It seems to have conflict with:

  1. i18n_taxonomy and
  2. CTools's page_manager

All these modules try to use hook_menu_alter() to override the default taxonomy pages callback ('taxonomy/term/%taxonomy_term'). Because Media Gallery is failed in this "race", the /galleries page is not rendered by Media Gallery's function media_gallery_list_galleries. And the layout is therefore out of Media Gallery's control.

In Media Gallery, the code involved is this:


/**
 * Implements hook_menu_alter().
 */
function media_gallery_menu_alter(&$items) {
  // Take over taxonomy term list pages by substituting our own callback.
  // TODO: Use hook_entity_info_alter() to change the entity uri callback for
  // gallery collections only.
  $items['taxonomy/term/%taxonomy_term']['page callback'] = 'media_gallery_list_galleries';
  $items['taxonomy/term/%taxonomy_term']['file'] = 'media_gallery.pages.inc';
  $items['taxonomy/term/%taxonomy_term']['module'] = 'media_gallery';

  // If you're viewing a media item in context somewhere (which we do inside
  // media gallery nodes), that means it's being used on your site, which means
  // you won't be allowed to delete it anyway. Therefore, do not show
  // contextual links there.
  // @todo Perhaps this should be changed in the media module itself?
  $items['media/%file/delete']['context'] = MENU_CONTEXT_PAGE;
}

In page_manager:

/**
 * Implements hook_menu_alter.
 *
 * Get a list of all tasks and delegate to them.
 */
function page_manager_menu_alter(&$items) {
  // For some reason, some things can activate modules without satisfying
  // dependencies. I don't know how, but this helps prevent things from
  // whitescreening when this happens.
  if (!module_exists('ctools')) {
    return;
  }

  $tasks = page_manager_get_tasks();

  foreach ($tasks as $task) {
    if ($function = ctools_plugin_get_function($task, 'hook menu alter')) {
      $function($items, $task);
    }
    // let the subtasks alter the menu items too.
    foreach (page_manager_get_task_subtasks($task) as $subtask_id => $subtask) {
      if ($function = ctools_plugin_get_function($subtask, 'hook menu alter')) {
        $function($items, $subtask);
      }
    }
  }

  return $items;
}

And in i18n_taxonomy:


/**
 * Implements hook_menu_alter().
 *
 * Take over the taxonomy pages
 */
function i18n_taxonomy_menu_alter(&$items) {
  // If ctool's page manager is active for the path skip this modules override.
  // Also views module takes over this page so this won't work if views enabled.
  // Skip when taxonomy_display enabled, see http:// drupal.org/node/1280194
  if (variable_get('page_manager_term_view_disabled', TRUE) && !module_exists('taxonomy_display')) {
    // Taxonomy term page. Localize terms.
    $items['taxonomy/term/%taxonomy_term']['page callback'] = 'i18n_taxonomy_term_page';
    $items['taxonomy/term/%taxonomy_term']['title callback'] = 'i18n_taxonomy_term_name';
    $items['taxonomy/term/%taxonomy_term']['file'] = 'i18n_taxonomy.pages.inc';
    $items['taxonomy/term/%taxonomy_term']['module'] = 'i18n_taxonomy';
  }

  // Localize autocomplete
  $items['taxonomy/autocomplete']['page callback'] = 'i18n_taxonomy_autocomplete_field';
  $items['taxonomy/autocomplete']['file'] = 'i18n_taxonomy.pages.inc';
  $items['taxonomy/autocomplete']['module'] = 'i18n_taxonomy';
}

Only one of these involved module can be success. They are conflicting to each another.

This bug might be resolved after migrating to hook_entity_info_alter(). I am not sure.

Please do follow up this bug. Thanks.

webadpro’s picture

After the post #7, that rang a bell, I've uninstalled I18n Taxonomy, and that worked for me.
Although, maybe there's another way we could handle the way the gallery list is handle.

lsolesen’s picture

Status: Active » Closed (duplicate)