need to tag photos on upload, and after the fact, and automatically
We're using CCK, ImageField and ImageCache to allow users to upload photos to their own directories. The photos appear in a gallery associated with that user but they can link to them in forums, etc. One of our content types allows the user to file a report and associate photos with it. We're trying to figure out a couple things, and I'm hoping someone can help to make sense of the options:
1) On upload to their personal photo collection, the user should be able to tag each individual photo with an arbitrary number of taxonomy terms. We're thinking this will be free tagging, like flickr.
2) The user should be able to upload photos and then free tag each individual photo *afterwards*.
3) In the case of a filed report, uploaded photos that are part of the report should be automatically tagged with the subject of the report. That is, the reports are for a finite, predefined list of subjects. When the user is creating this content, an autocomplete field is used to allow them to select the subject of the report (it's a node reference field, which refers to the subjects - part of another section of the site). This same value should be used to automatically tag any photos uploaded through this form.
So what I can't quite figure out is how we should go about implementing this.
For #1, I can't find a way to assign tags to the individual image uploads within the upload form.
For #2, I think that will be fairly trivial, and have found a module that seems to do what we want.
#3 is the big one - how can we associate the value of the node reference field on a content creation form with each image being uploaded from within that same form? is this possible?
Thanks!

_
Unfortunately, I don't know of any easy way to do this with individual images in an imagefield. There is work being done with CCK (in the new 3.x dev branch) to be able to allow functionality like this, but for the time being you'll probably need to use individual nodes per image to get it done. Then you can use something like views_attach to group the images together onto a single node.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
ok, well, we can work around
ok, well, we can work around this by explaining to the user that they're uploading a "collection" and if they want to upload photos of different subjects, they should do them separately. That would take care of #'s 1 and 2 - we can give them a place to add tags for the collection. if they just want to do one photo, they'd have to do it separately.
However, the one that's most important right now is #3 - being able to automatically assign tags to all the photos being uploaded, right on the upload form. Since these are actually already a collection, we're good there - they all need to have the same term assigned. but it needs to be done without the user knowing it. Any suggestions?
_
Maybe the http://drupal.org/project/nat module?
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
thanks. I had looked at that
thanks. I had looked at that one, but it doesn't seem to allow for exactly what we need, instead it assigns the terms based on the content type. Within the content type, the user creates reports based on subjects they select in the form. The terms need to be tied to those subjects, not to the content type itself.
_
I'm not sure what you mean by "tied to those subjects" -- taxonomy terms apply to nodes, not other terms. In any case what about http://drupal.org/project/taxonomy_defaults? Or http://drupal.org/project/content_taxonomy?
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
I'll check those out now. to
I'll check those out now. to clarify:
We have two content types that are somewhat related. One is content we generate. This is about 350 or so companies. There's one page per company with a bunch of information about that organization.
There's a second content type, let's call it "Reports" that the user contributes. They choose the associated company when creating a new report by selecting its name in the content creation form (we use a node reference field in CCK for this). So, each Report that the user generates is a Node. The thing is, we need for the taxonomy term associated with that node to match the name of the company that the user selects. It appears that NAT assigns one term to all nodes within that content type (unless I'm misunderstanding its usage).
Ok, I think Content Taxonomy
Ok, I think Content Taxonomy is what we want. We'll need to rejigger things a little bit to make this work. Instead of having the reports reference the company pages, we'll have both company pages and report reference a separate taxonomy vocabulary of the company names.
Thanks!
_
ok-- based on your addition info I think content_taxonomy will be the answer. It's an incredibly useful module-- I install it on almost every site. At the very least, those with complex cck forms.
you're welcome ;-)
EDIT: i just had another idea... if content_taxonomy doesn't do it, you might be able to set it up with the rules module. You would add a rule to add terms to the node after it's been saved or updated. You can use php to do it, so just about anything you need to do should be possible.
_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.
that's a good idea with the
that's a good idea with the rules module. I've looked at it but haven't really used it. I'll keep that in mind in case this doesn't work.
thanks