Hey folks, I've recently found a need to have more than one gallery collection on a site. Basically, I needed a Photo Gallery and Video Gallery. I checked through the .module and found that the feature is pretty much there, but most of it is disabled and though I'm sure the maintainers have a reason, here is how I enabled it:

Comment out the below:

    if (($term = menu_get_object('taxonomy_term', 2)) && isset($term->vid) && $term->vid == variable_get('media_gallery_collection_vid')) {
      $tabs = &$data['tabs'][0]['output'];
      foreach ($tabs as &$tab) {
        if (isset($tab['#link']['path']) && $tab['#link']['path'] == 'taxonomy/term/%/edit') {
          $tab['#link']['href'] = 'admin/config/media/galleries';
          $tab['#link']['title'] = t('Edit all galleries');
        }
      }
    }

Change $form['media_gallery_collection']['#access'] = FALSE; to $form['media_gallery_collection']['#access'] = TRUE;

Comment out the below:

function media_gallery_form_taxonomy_overview_vocabularies_alter(&$form, &$form_state) {
   $gallery_collection_vid = variable_get('media_gallery_collection_vid');
   unset($form[$gallery_collection_vid]);
}

Doing this will give you the ability to see the gallery collections taxonomy terms and add new ones. You will also see the term reference field for gallery collection show up on the node form for you to choose from.

I'm posting this mainly to assist anyone looking for similar functionality and to perhaps start a discussion on why Media Gallery has this stuff disabled / what needs to be done to fix whatever problems arise from it.

Comments

Moloc’s picture

Thank you for the research.
There is already a issue with the same content. See #1037002: New feature: Gallery containers. There you can find more information.

Moloc’s picture

Status: Active » Closed (duplicate)

As there is no response, and i already stated in #1, that this is a duplicate, i close this one.

Moloc’s picture

Issue summary: View changes

Fixed a typo.