I have the latest Drupal installed, and the latest gallery module installed (9/15 version). Both work as standalone. The random image block works correctly. I was able to enable the Gallery menu item in the main navigation. However, when I click on that, it basically puts the whole gallery "website" within the main block of drupal. I would like it to look like walkah's or gallery's embedded installation where only the main albums show within drupal's main block.

Take a look at my website and you'll see what I mean:

www.todaysphotographer.com

Comments

walkah’s picture

Status: Active » Closed (works as designed)

in both cases, my site and gallery's, the gallery2 theme has been edited to look 'appropriate' - while a drupal theme for g2 is in the works... you can mimic it by editing your theme (look in themes/matrix/templates for example).

kiz_0987’s picture

Status: Closed (works as designed) » Active

The current gallery.module does not turn off the sidebar. It looks like Walkah has turned off all the blocks in the sidebar in his gallery so it does not show up (you can see this by going to the non-embedded site: http://walkah.net/gallery2/) but put the navigation in the album block instead so it shows up at the bottom. You can do this also in the gallery admin settings.

This is a stopgap solution until sidebar content from gallery can be put in a Drupal block.

Joshua Higgins’s picture

Great suggestions guys! any way I can be notified when a drupal theme for g2 comes out?

Joshua Higgins’s picture

Ok, either I am a complete moron or maybe something happened. I installed drupal and gallery2 together before and they worked perfectly out of the box. the drupal version was 4.2 and the gallery version was gallery2 alpha 1. I took the default themes for both and they work perfect together. One difference I noticed was that in the drupal settings for gallery, there are more options than just defining the location of the gallery install. there is checkboxes for the following:

Image Blocks:
Random Image
Newest Image
Most Viewed Image
Random Album
Newest Album
Most Viewed Album
Show:
Title
Date
Views
Owner

you can see what I mean on how they work together with this website: note: I didn't modify either theme and they look fit together seamlessly. How can I achieve this again???

www.vagabondventures.com (embedded)
www.vagabondventures.com/gallery (non-embedded)

pitpit’s picture

let have a look on http://gallery.menalto.com/node/24126?from=50&comments_per_page=50,

valiant

Joined: 2003-01-04
Posts: 7624
Posted: Fri, 2005-07-15 09:59

Announcement:

The separate sidebar html is back! Kudos go to bharat for this one :)

But you have to change your integration code a little bit:
The new capability id is a little different:
...

joshua you seem to use an alpha version of gallery2 which disables sidebar when embed. But it does not longer work with today's gallery2 version. 'Gallery' needs an update to do it work, is'nt it?

Damien

pitpit’s picture

So, to turn off the sidebar, just add

  GalleryCapabilities::set('showSidebarBlocks', false);

after

  $ret = GalleryEmbed::init($params);

in '_gallery_init' function (gallery.module file)

it could be great to add a 'turn on sidebar/turn off sidebar' feature in gallery module settings

Damien

kiz_0987’s picture

Status: Active » Closed (fixed)