Drupal 5.x-G2 theme integration

fmjrey

Joined: 2007-10-22
Posts: 4
Posted: Mon, 2007-10-22 09:56

Hello,
Is there any theme integration between drupal and G2? Looking at drupal's gallery settings it would seem that the option 'gallery page theme' would allow embedded g2 to use drupal's theme, but that's not what I observe (see attached screenshot).
Sorry for such a dumb question, but scanning through various resources did not give me a clear picture of theme integration. Perhaps I've missed something, not to mention that I'm totally new to drupal, g2, php and web design (but I do have a programming background). I understand a lot can depend on my setup (described further below), but then I've not been able to determine what works and what doesn't from my research. Do I have to edit some css somewhere to get this working fine?
I'd appreciate any pointers that could help me unlock the situation.

Here is my setup:
drupal 5.2
Beale Street drupal theme (http://www.roopletheme.com/node/51)
G2.2.3 within drupal dir
gallery-5.x-2.0-beta4:
* Overall Status (Installation) [OK]
* Gallery2 API version: 7.18 / 1.2
see attached gallery_report.html for more info

AttachmentSize
drupal5-g2.jpg37.16 KB
gallery_report.html7.84 KB
 
profix898

Joined: 2005-11-08
Posts: 135
Posted: Mon, 2007-10-22 10:56

Hi fmjrey!

Welcome to the Drupal and G2 community. There is nothing like theme integration between G2 and Drupal. The gallery pages are rendered by G2 and wrapped in a Drupal page to show up embedded. However you have to customize the G2 theme to match your Drupal layout (or vice versa). The 'gallery page theme' option allows you to switch the Drupal theme for gallery pages only.
Many advanced/exacting users use a modified version of one of the basic G2 themes (e.g. matrix, floatrix, ...). But you can get nice results by using a colorpack in G2 and doing some css customization (no need to change the G2 theme directly, use the gallery.css file in Drupal to override css styles) already. It also helps to hide the right Drupal sidebar on gallery pages. (See http://www.thecrookstoncollection.com/gallery or http://bischof.homelinux.net/cms/drupal/gallery for two examples of VERY basic css customization).

 
fmjrey

Joined: 2007-10-22
Posts: 4
Posted: Mon, 2007-10-22 11:41

Many thanks, profix898, for these pointers. Things are clearer now.
The Web Developer plugin to Firefox is going to be my best friend for tracking down the correct styles to hack...

Being new to all this but still having a developer background, I'm also realizing that such integration would mean harmonizing styles across applications, which is probably unrealistic.
Perhaps one way to get theme integration between various web applications would be some kind css styles mapping within the web server (xslt?)...

Anyway, G2 and Drupal integration is impressive as it is and I'm very thankful for that. Well done!