I am attempting to take over maintenance of a Drupal web site that was developed by a web developer who is no longer available to help me maintain the site. I can add content just fine ... where I am stumped is this image gallery:

http://anderscshafer.com/image/tid/1

When I enter the admin mode, there appears to be no way to add images to this particular gallery! When I attempt to create content, I have the three basic choices of Image, Page and Story. If I choose image and add it, the new image doesn't appear in the gallery. Also, I see no way of categorizing that image after adding it so that it does show up in that gallery.

Also, if I am in admin mode, I get an option for editing every other page on the site .... except that image gallery: it looks the same as if I were not logged in.

I'm sure that this is something simple that a novice Drupal user like me just is not seeing ... can someone help me please? That would be AWESOME if you could ... THANKS!

Comments

dman’s picture

Image galleries are automatic collations - not pages - which is why you don't 'edit' them directly.
Instead you add or remove images from the group.
This is handled on a per-image basic. An image is marked as being a member of one or more galleries.
Soooo.
When you create (or edit) an image there should be a selector on the edit form that allows you to select the gallery(s) it should show up in.

.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |

jimmyz12’s picture

Dan ... thanks for the reply ... but that's part of the problem: when I view an image in edit mode, there is nothing giving me an option for classifying that image .... nor is there anyway to do it when I add an image. I wonder if this is a bad install of Drupal: I have another site I am working on that DOES allow you to select a category when you add images. As an experiment, I created a new image gallery for this site .... yet I couldn't find anyway to add images to the new gallery either in admin. Suggestions?

dman’s picture

In taxonomy, you should see a 'gallery' vocabulary.
That gallery vocabulary should be associated with 'image' content type.

It's also possible that a single variable has got lost - can happen if a required vocabulary is deleted and re-created again.
if variable_get('image_gallery_nav_vocabulary', '') is for some broken reason not pointing at the 'gallery' vocabulary, it needs to be fixed.
A little php

print(variable_get('image_gallery_nav_vocabulary', 'bad news'));

should return a number corresponding to the vocab. If not, or it gives a number indicating a not-existant vocab, it's broken.
Make a new vocab, and then

variable_set('image_gallery_nav_vocabulary', $vid));

where vid is the new vocab id.

This is speculation, as it really should not get into this state. I've only managed it once with a broken partial backup.

.dan.
if you are asking a question you think should be documented, please provide a link to the handbook where you think the answer should be found.
| http://www.coders.co.nz/ |

hoot’s picture

Your tip on editing the Image Gallery vocabulary under taxonomy and adding image as a content type worked. I can now add an image to a gallery.

Thank you.