Hey Drupal Community!
I am trying to come up with a way to link three CCK fields together so that when you add multiple values to the same node you have three connected CCK fields in this case.
The use is when someone works on a case tracker case they should have the date, the hours worked, as well as their user name. We don't want to have to make a new node each time for this.
Another use case is users upload pictures and the admin needs an excepted check box for each uploaded image on the same node.
I hope I am making sense.
If anyone has an idea of how to make this work I would appreciate it.
Thanks,
Steve
Steve Kessler
Denver DataMan
303-587-4428
http://www.denverdataman.com/content/enewsletter-signup Sign up for the Denver DataMan Free eNewsletter
Hi Steve—
I'm not sure I understand your use case, but if you want to create a result in a node from combinations of other fields in the same node, look into the Computed Field module:
http://drupal.org/project/computed_field
If you're trying to link fields from different nodes together, I can't think of a way to do that without having another datatype and and using Nodereference or Node Relationships (which seems to require NodeReference).
http://drupal.org/project/noderelationships
I hope that's helpful.
Steve
On Sep 23, 2009, at 8:44 PM, Steve Kessler wrote:
Hey Drupal Community!
I am trying to come up with a way to link three CCK fields together so that when you add multiple values to the same node you have three connected CCK fields in this case.
The use is when someone works on a case tracker case they should have the date, the hours worked, as well as their user name. We don’t want to have to make a new node each time for this.
Another use case is users upload pictures and the admin needs an excepted check box for each uploaded image on the same node.
I hope I am making sense.
If anyone has an idea of how to make this work I would appreciate it.
Thanks, Steve
Steve Kessler Denver DataMan 303-587-4428 Sign up for the Denver DataMan Free eNewsletter
-- [ Drupal support list | http://lists.drupal.org/ ]
The idea is that there are multiple fields on the same node that are related and multiple instances of these fields. Think of three columns on a spreadsheet and potentially unlimited rows.
Thanks,
Steve
Steve Kessler
Denver DataMan
303-587-4428
Sign up for the http://www.denverdataman.com/content/enewsletter-signup Denver DataMan Free eNewsletter
From: Steve Kessler [mailto:skessler@denverdataman.com] Sent: Wednesday, September 23, 2009 9:44 PM To: support@drupal.org Subject: [support] Connecting CCK Fields
Hey Drupal Community!
I am trying to come up with a way to link three CCK fields together so that when you add multiple values to the same node you have three connected CCK fields in this case.
The use is when someone works on a case tracker case they should have the date, the hours worked, as well as their user name. We don't want to have to make a new node each time for this.
Another use case is users upload pictures and the admin needs an excepted check box for each uploaded image on the same node.
I hope I am making sense.
If anyone has an idea of how to make this work I would appreciate it.
Thanks,
Steve
Steve Kessler
Denver DataMan
303-587-4428
Sign up for the http://www.denverdataman.com/content/enewsletter-signup Denver DataMan Free eNewsletter
OK, let's see if I understand correctly. You have Content Type "Parent" comprised of the following fields:
First Name Last Name Child's Birthday Child's First Name Child's Last Name
and you want to create an indefinite number of sets of those last three fields.
If that's right, there's good news and bad news. The good news is that CCK3 has multigroups, which allow you to do exactly what you can do with single fields (namely allow multiple or indefinite numbers of instances of that field per node) except with an entire fieldgroup.
The bad news is that that feature is in CCK3, which you're welcome to download and use, but it's not released even as an "alpha" version. Use on a production website? Not for the non-masochists in the audience. That's asking for trouble.
Instead, you might try the Flexifield module:
http://drupal.org/project/flexifield
The end result looks similar, but it does require building a node type for the (in my example) child data. You build a Flexifield content type out of CCK components and that content type becomes available as a form field, except that it's really a group of multiple fields. Flexifields, like other CCK fields, can include an indefinite number of themselves. I don't think it even creates new "child" nodes... but you have to create the "Child" content type.
Personally, I like the CCK Multigroups solution better, but if you need it right away and especially if you have more complicated needs (where unknown module conflicts might pop up), you should stay away. If you're not launching for a few months or it's internal-use only, you might get away with it. I just refuse to take responsibility for recommending a pre-alpha module, dig?
Steve
On Sep 23, 2009, at 9:04 PM, Steve Kessler wrote:
The idea is that there are multiple fields on the same node that are related and multiple instances of these fields. Think of three columns on a spreadsheet and potentially unlimited rows.
Thanks, Steve
Steve Kessler Denver DataMan 303-587-4428 Sign up for the Denver DataMan Free eNewsletter
From: Steve Kessler [mailto:skessler@denverdataman.com] Sent: Wednesday, September 23, 2009 9:44 PM To: support@drupal.org Subject: [support] Connecting CCK Fields
Hey Drupal Community!
I am trying to come up with a way to link three CCK fields together so that when you add multiple values to the same node you have three connected CCK fields in this case.
The use is when someone works on a case tracker case they should have the date, the hours worked, as well as their user name. We don’t want to have to make a new node each time for this.
Another use case is users upload pictures and the admin needs an excepted check box for each uploaded image on the same node.
I hope I am making sense.
If anyone has an idea of how to make this work I would appreciate it.
Thanks, Steve
Steve Kessler Denver DataMan 303-587-4428 Sign up for the Denver DataMan Free eNewsletter
-- [ Drupal support list | http://lists.drupal.org/ ]
On Thu, Sep 24, 2009 at 8:45 AM, Tine Müller tinem@email.dk wrote:
I have been in this forum for about 5 month's and still think about myself as a newbie because there are so much to learn and understand but I love Drupal as you do.
BUT I don't understand why people don't link to their sites when they ask for help? It would really be a help for us newbies to see this sites and the problem they are struggling with for learning.
Why don't YOU link to YOUR site?
Many people develop their sites offline and so can't link to them. I run into that a lot in my issue queues when people have CSS problems and I ask for a link to their site so I can use firebug on it. Others are under NDA or have similar reasons why they aren't allowed to show the site in progress.
Michelle
I have been in this forum for about 5 month's and still think about myself as a newbie because there are so much to learn and understand but I love Drupal as you do.
BUT I don't understand why people don't link to their sites when they ask for help? It would really be a help for us newbies to see this sites and the problem they are struggling with for learning.
Why don't YOU link to YOUR site?
I don't want our client to see the post in an archive in 6 months and ask me why I am posting this question about his site and now it comes up in Google!
Dat's my 2 pence.
shellmedia's answer is also my answer.
On Thu, Sep 24, 2009 at 10:58 PM, fredthejonester <fredthejonester@gmail.com
wrote:
I have been in this forum for about 5 month's and still think about
myself
as a newbie because there are so much to learn and understand but I love Drupal as you do.
BUT I don't understand why people don't link to their sites when they
ask
for help? It would really be a help for us newbies to see this sites and
the
problem they are struggling with for learning.
Why don't YOU link to YOUR site?
I don't want our client to see the post in an archive in 6 months and ask me why I am posting this question about his site and now it comes up in Google!
Dat's my 2 pence.
[ Drupal support list | http://lists.drupal.org/ ]
On Wed, Sep 23, 2009 at 9:44 PM, Steve Kessler skessler@denverdataman.com wrote:
I am trying to come up with a way to link three CCK fields together so that when you add multiple values to the same node you have three connected CCK fields in this case.
Hi Steve,
One idea is the cck multigroup feature - which is tracked in http://drupal.org/node/494100 and is incorporated into CCK 6.x-3.x - but CCK 6.x-3.x is the development branch without any specific stability. I'm working on a site that is using it, but the site made the decision to use it with the clear knowledge that we may need to contribute patches to stabilize CCK6.x-3.x ourselves every now and then.
Cheers, Greg