I am brand new to drupal, and am trying to use it to build a social networking site (of course, that is why I am posting here). Although new, I have tried to research this question/idea but have not found a whole lot. Good chance I have blatantly overlooked some resource, and if that is the case, I apologize (but please point me to the resource). Here is what I would like to do:
I want to allow users to have a Gear Box, in which they list the gear they use for their activity (ie, Callaway Big Bertha club), and add it to their Gear Box. I would like users to be able to create their own gear, but also allow them to add gear from the nodes other users have already created. There will be different types of gear (clubs, balls, gloves, etc). My current plan is to create a custom content type for each type.
So here are my questions (if the above is possible)
1) Can I group the Content Types together (in a Gear collection)
2) How do I allow users to attach these nodes to their "Gear"
3) How do I allow multiple users to add the same item to their respective "Gear" boxes?
Thanks in advance, sorry for being a newb.
Josh
Comments
I believe you want to use "nodereference"
It's a cck field that lets you reference one node within another. So, you could have a "gear" node type (or even multiple types of gear nodes), and a "gear box" node type, and the gear box node could contain nodereference fields for the gear node type(s). The "add another" module would let people add gear that isn't in the system yet while they're editing their gear box.
Or, you could have gear node types, and a "my gear box" flag, and then display each user's gear box using a view.
I'm not sure which method makes the most sense for your site, but those are the two approaches I'd consider.
FLAG!
I think the best way would be with the flag.module. Node references aren't good for big lists of stuff. Flag is probably a lot "cheaper" as well - node_load is expensive and node references will almost certainly invoke that somewhere along the line. Big performance hit there on many nodes/relationships.
Web Development in Nottingham, UK by Kineta Systems / Follow me on Twitter! @NikLP
Web Development in Nottingham, UK by Kineta Systems / Follow me on Twitter! @NikLP
Flag
I have looked at the flag module, am going to install it as it looks like it will do the trick! Thanks all!