hi,

I have a gallery setup and when i create or edit an image I can add it to the gallery, but how can i add a batch of existing images to a gallery without having to edit them one by one? and also, how can i have attached images to a node of a certain content type be automatically added to a certain gallery?

Thanks.

Comments

joachim’s picture

Status: Active » Fixed

Investigate contrib modules that let you make batch taxonomy operations. Galleries are just taxonomy, after all :)

For attached images, I'm less sure. There used to be a field in Views on D5 for that, not sure on 6.

Hetta’s picture

I'd go with a sql statement, run directly against the database ... after a full backup, of course.

problue solutions’s picture

Thanks for the replies guys, Im quite technically minded and have a very basic understanding of php and sql, but not to the extent hat id be confident making changes like this.

I installed 'views bulk operations' and got the view to display the nodes i wanted to operate on, I selected all the nodes and tried to peform the 'Modify node's taxonomy terms' operation, but received the error message "The selected nodes are not associated with any vocabulary. Please select other nodes and try again". As far as i can see using this module i can only associate the nodes with terms and not vocabularys, which needs done first it would seem. Didnt think it would be this complicated to do something very simple! Anyway, this has nothing to do with the image modules but thanks for the imput anyway guys :)

joachim’s picture

Weird.
Any image node should be able to get an image gallery term. Can you give one of those nodes that term when you edit it normally? If so, sounds like a bug in VBO.
There's this: http://drupal.org/project/taxonomy_node_operations but only for D5.

problue solutions’s picture

Yeah i can edit them individually no problem, but VBO only has the option to bulk modify the term and it wont do that because all the images seemingly arent in the image gallery vocabulary.

I'm basically just looking a simple gallery using a lot of pre-existing images, the problem im having is that i need to filter the images in such a way that the only ones being displayed are ones that are attached to a paticular node type.

I'll just have to keep investigating more bulk taxomony modules for D6 i guess

joachim’s picture

Sounds like a bug in VBO.
There's a D6 version of taxonomy node operations here: http://drupal.org/node/247456

problue solutions’s picture

nice one, thanks :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

mcjim’s picture

Just run into this myself. Looks like it works if you set up your VBO view to have at least two bulk operations. So, when you set up your view, select at least one other (random!) bulk operation. Then, when you view your view, you can select the taxonomy one.

MamaGubs’s picture

If you are using content taxonomy field, you should just choose "modify node field" instead of "modify node taxonomy terms" and it should work just fine.