Posted by cattech on March 14, 2008 at 6:32pm
Jump to:
| Project: | Form Defaults |
| Version: | 6.x-1.0 |
| Component: | User interface |
| Category: | support request |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hello all,
I have been banging my head against a wall trying to find a way to create a profile that allows for 2 user images, or ideally a profile with (2) complete data sets associated with the same user, IE. User Info & Picture and their kids picture / information.
I've tried manually going in and editing the code, creating secondary image arrays, etc. - but thats kind of out of my field of expertise as it's been years since I've taken any programming classes.
Has anyone done any anything like this yet? There must be an easier way to accomplish this.
Any help would be greatly appreciated. I am using Drupal 5.x
Thanks,
Robert
Comments
#1
Hi,
I'll see if I can help here.
I would suggest that the easiest way is to simply create a new content type with a cck image field, and call it "Kids Picture" or something of that sort (you could limit the node creation to 1 if you wanted to).
Then create a new view for the "kids picture", using cck and imagefield, and use this view to assign as a panel view.
For the kids info, just create a second cck group and text field under it in your user profile content type.
Then in your panel page -> userprofile -> edit -> content, just add a new cck group using the kids info group, under node context. For the kids image, do the same with your panel view.
I'm using nodeprofile, but this should be the same for bio.
You should not have to edit any code manually to do what you want. The way Michelle has created AP with panels makes it extremely versatile.
Hopefully that helps a bit.
Cheers,
TC
#2
Got the image field setup, and it shows up in the profile now - however there is no upload option for the picture.
#3
make sure "attachments" are enabled for the content type (check the individual node that you are testing also).
#4
Looks like you got help. Thanks, TC44.
Michelle
#5
Drupal install got too corrupted, and since 6.1 is now out I went ahead and started from scratch again - Thanks for the initial help though. I am now using 6.1 and the modules mentioned above are not out for 6.1
I've been following the post below:
http://drupal.org/node/237874
referencing imagefilter and formdefaults - however I have yet to find a way to allow for multiple uploads.
Also - has anyone come across something similar to advanced profile for 6.1 - or do I need to create multiple field from scratch?
Thanks,
Robert