Similar to this post: http://drupal.org/node/208287, I have Drupal with Gallery and it's fine BUT I have a block that I need to show on a specific gallery (in the other post, the author had a block that she wanted to display everywhere EXCEPT for a certain gallery) Thus, I'd like the block to show on the specific album's ("WoodDoor" is its name) thumbnail page, slideshow, and pages where any of the individual pictures are displayed. Additionally, there are some other drupal pages which will display the block, and these are working fine.

In gallery, I'm the URL Rewrite plugin, which makes some convenient short URLs. Ideally, I really need is the "show on specific page" feature for the block to simply work with the URLS produced by gallery's URL Rewrite module which are of the form: v/WoodDoors/*. That would be perfect. However, gallery's short url plugin doesn't talk to drupal so that drupal seems to have no idea of what v/WoodDoors means.

Yet, without the URL rewrite module, I can't figure out how to display the block on the required gallery pages at all since all of non-shortened gallery links are of the form http://mysite.com/index.php?q=gallery&g2_itemId=181 (for the gallery) or http://mysite.com/index.php?q=gallery&g2_itemId=190&g2_enterAlbum=0 (for any individual picture page), and the numbers, of course, change somewhat unpredictably.

Any ideas?