Hi-
I am trying to figure out the best way to oragnize my Gallery 2 by catergories. I have thought about using the custom fields in Gallery2 and then calling those from Drupal, but I think the quickest would be to use the Gallery2 keyword albums.
I was hacking at the taxonomy menu module and figured out a way to display keyword albums using Drupal's taxonomy:
taxonomy_menu:
$access = user_access('access content');
foreach (taxonomy_get_vocabularies() as $vocabulary) {
if (variable_get('taxonomy_menu_show_'. $vocabulary->vid, 1)) {
$path = 'taxonomy_menu/'. $vocabulary->vid;
$items[] = array('path' => $path, 'title' => t($vocabulary->name),
'callback' => 'taxonomy_menu_page', 'access' => $access,
'weight' => $vocabulary->weight);
I changed that to:
$access = user_access('access content');
foreach (taxonomy_get_vocabularies() as $vocabulary) {
if (variable_get('g2Keyword_menu_show_'. $vocabulary->vid, 1)) {
$path = 'http://localhost/main/?q=gallery&g2_view=keyalbum.KeywordAlbum&g2_keyword='. $vocabulary->name;
$items[] = array('path' => $path, 'title' => t($vocabulary->name),
'callback' => 'g2Keyword_menu_page', 'access' => $access,
'weight' => $vocabulary->weight);