Copy values from a content to another content

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by segolas on May 13, 2011 at 9:56am

Hi,

I had created a "receipe" content with many "ingredients" field. I also have a "shoppinglist" content with a list of "ingredients" (same field of the receipe).

I need that when the user is viewing a receipe node (not editing) he could add one ingredient to his shopping list. I have already developed a module wich reads the content of the user' shopping list and displays it in a block.

I'm thinking of "templating" the ingredient fields (http://drupal.org/node/206980) with a (jquery) form which sends the form to /node//add.

I don't like putting the code in the template, but I can't find any other solution. Is there a better way? Any idea?

Regards,
Segolas

p.s.
Is this the right place for discussing about developing? I can't find any forum or ml related to cck module developement...

Categories: , , ,

Content Construction Kit (CCK)

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /