When adding an image to a gallery by clicking through the "create content" menus, I am currently given a drop-down menu in the categories section with the list of galleries that are currently in the database.

The default gallery selected is "". I'd like to remove the "" option, and force a specific gallery to be selected by default.

Is that possible through theme development?

Comments

spanders’s picture

To clarify me second sentence. I see that some of my post was hidden, it was supposed to read...

The default gallery selected is "<none>". I'd like to remove the "<none>" option, and force a specific gallery to be selected by default.

vm’s picture

which gallery module ? there are a couple.

spanders’s picture

I am using the 'Image' module

spanders’s picture

Found the fix. Edit the vocabulary for your image galleries, check the box to Require a selection from this vocabulary, and then set the weight for your default gallery to '-10'

paulj2sj’s picture

Where in my admin panel do I go to edit the vocabulary for the image galleries? I've looked everywhere. Does it require a module?

spanders’s picture

It is done using the taxonomy module

1) In Admin, goto Content management -> Categories, add a new category. I called mine, Gallery. Then I selected the content type image and check 'required'. Save the new category.

2) Add terms to this category, add as many as you want here (blue, red, green, etc).

3) Create new content of the type image, you'll be forced to select one of the terms you entered as the Gallery for the photo.

That should be it.

KMethe1087’s picture

Just as an FYI, that doesn't seem to be working. I followed your steps and the "none" option is still selected. I did the following:

1. Added a Vocabulary called "Image Gallery (it's added by default when you enable the image gallery module).
2. Made it required
3. Added a weight to the 1 term in the gallery of -10.

result: none is still the default option.

vm’s picture

views attach may be an option. Can watch the videocast on the views_gallery project page as a reference.