I am using Gallery module with Gallery 2. Everything works fine, except gallery doesn't completely feel like part of the Drupal site. For starters, on all my gallery albums, I see duplicate gallery title: one outputted from Drupal and one from Gallery 2.

Please see attached screenshot.

CommentFileSizeAuthor
gallery_issue.JPG56.5 KBdeepak@dipak.org

Comments

kiz_0987’s picture

You can use the enhanced gallery.module to get rid of this problem (basically via a css statement) -- http://drupal.org/node/32393 . You could also change your css file to remove it.

deepak@dipak.org’s picture

The repeating title problem still exists. This is what I did (and nothing else):

1) I downloaded the patched version.
2) I put the css file in the same folder as gallery (and by looking at html for my gallery pages, I know its getting loaded)
3) I modified main.php in the Gallery2 folder.

Is there something I missed?

kiz_0987’s picture

Can you PM me a link to your website and I'll take a look.

deepak@dipak.org’s picture

It's sad, but I can't figure out how to send you a PM, since http://drupal.org/privatemsg doesn't seem to be a valid path. I e-mailed you instead.

kiz_0987’s picture

The reason that the css changes do not work in the enhanced gallery.module is that they are designed for the G2 Matrix theme, not Siriux. Siriux can be made to get work with Drupal (as you have done) but it is not ideal as it uses many of the same definition names as the Drupal theme, so you will run into problems with precedence. The Matrix theme is well behaved as it uses a prefix to its definitions, such as gbBlock etc, but Siriux does not. For this reason you have 2 elements with class "breadcrumb", one from Drupal, one from Siriux. You want to avoid display of the Siriux one.

Check the drupal_g2.css file for comments about titles and breadcrumbs and you will see definitions like:

#gsNavBar div.gbBreadCrumb {
  display: none;
}

Try

#gallery div.breadcrumb {
  display: none;
}

And similar for the other definitions. You will have to play around. I suggest that you use the DOM Inspector in Firefox to debug your css rules to get this to work. That's what I used to figure out the issue here.

deepak@dipak.org’s picture

I tried your trick and it did work. I used the DOM inspector to also figure out how to get rid of the 2nd title. In case someone else wants to use Siriux theme with gallery, here are the statements I added to drupal_g2.css:

/* Sirius: Do not display the breadcrumb */
#gallery div.breadcrumb {
  display: none;
}

/* Sirius: Removes the Gallery Title (as Drupal displays it)*/
#gallery h2 {
  display: none;
}

kiz_0987’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)