What I am trying to do is have it so that when a user clicks on a certain link, a node (of a specific content type) is created.

More specifically, I'm trying to leverage the Amazon Tools Module so that, on the search page that the module provides, when a user clicks on the title of the book, an amazon_node is created with all of the information for the book automatically inserted (as it is now, clicking on this link will take a user to the appropriate page on amazon.com).

The general question is this - how do I make it so that clicking on a link will allow me to create a new node? Any help would be greatly appreciated. Thanks!

Comments

esllou’s picture

http://www.mysite.com/node/add/page

that should do it. Replace "page" with node type.

Lyal’s picture

What you're hoping to accomplish will require some PHP development - and there's no stock way of doing it via snippets or another contributed module.

As I understand it from your post, the basic flow you're looking for is:

  1. User does a search for amazon titles
  2. List of matching products is displayed
  3. User clicks on a title for more information
  4. The drupal backend queries the amazon API again for product details IF the node doesn't already exist or the node is out of date
  5. The resulting data is passed to the user via a new node.

This would make a fine first module for a PHP developer.

Outcome3 Drupal Services
Vancouver Technology Guy

DayShallCome’s picture

Yes, this is exactly the functionality I'm looking for. I appreciate the comment, at least I now know that I'll need to code it myself. :)

If anyone has any ideas/examples that would make this easier for me, I'd appreciate it. Thanks!

DayShallCome’s picture

Anyone have any tips for me?

Lyal’s picture

Only thing I can suggest is that you dive right in to development, or if you don't want to do that, hire a developer.

Outcome3 Drupal Services
Vancouver Technology Guy