drupal - Short path names to Gallery2 images

MrGibbage

Joined: 2005-12-06
Posts: 16
Posted: Tue, 2005-12-06 12:20

How do I get decent short names to images in my embeded gallery2 database? I can get nice names to the pages, but to get just the image, I have to use a ridiculous link like this:
http://hiddenhems.com/drupal/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=684&g2_serialNumber=2&g2_GALLERYSID=b2229c944dafe92d147f6353b52abdb5

The link to the page is nice and clean:
http://hiddenhems.com/drupal/gallery/Gardens/winter_001.jpg.html

Did I miss a setting somewhere?

Skip

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-12-06 16:25

check site admin/url rewrite.
there is a rule for download urls.. by default it uses /d/ in the path.

 
MrGibbage

Joined: 2005-12-06
Posts: 16
Posted: Thu, 2005-12-08 12:39

I get an error about not being able to write to the .htaccess file, which I understand is a feature of it being embeded in drupal (I get the same error on the "Test" page of the URL rewrite section.

Skip

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-12-08 14:56

Moving to support..

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-08 15:31

moved to the integration forum :)

in your embedded g2, access site admin -> url rewrite -> setup and make sure the embedded htaccess file config is ok.

 
Continental

Joined: 2004-06-14
Posts: 243
Posted: Thu, 2005-12-08 23:44

my link is like
server/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=3653

when installing gallery.module it is said you MUST turn off any url rewrite but show item.
do it means what I turned off download url rewrite. Do you advice to switch it back in order to have nice url?

 
kiz_0987

Joined: 2005-02-27
Posts: 189
Posted: Fri, 2005-12-09 00:53

My understanding is that Download item cannot yet have a URl rewrite rule, only "Show item". So I would not expect it to work. I have not really played with it to see if it can be made to work. If you figure it out let us know.

 
MrGibbage

Joined: 2005-12-06
Posts: 16
Posted: Fri, 2005-12-09 05:19

I think it is indeed correct that with the embedded gallery within Drupal, you can only URL rewrite the "Show Item" rule. Also, if you try the "Test" tab, you will always get errors with a "properly" embedded G2. Of course someone may correct me on this and/or prove me wrong.