Amazon Views 2 Usage How to
| Project: | Amazon Module |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Is it possible to get help on how to use Views2 for the Amazon Module.
Step by step:
1) Create a view of type "Amazon" (it comes with Amazon type as addition to Node, Term, ...)
2) Add Amazon related fields (there are quite a number of them, from ASIN, title to list price, ...)
3) Then what ?
How does this view get the ASIN for the product ?
Do we add an Argument as ASIN and add a page display with URL e.g, amazon/%, where we create the product nodes with the URL amazon/ASIN and add a default argument code PHP, saying, return arg(1); to read the ASIN ?
Is this the way Views 2 should be used to display Amazon nodes ?
4) How about if we want to display the Amazon view as block ? Shall we use the option "Expose Form in block" ?
Normally, with the default taxonomy/term/tid view, that comes with views 2 , does not require a page display for "Expose Form in block" to work, however, the view gets the necessary info with taxonomy term id argument. How does the Amazon block view gets the ASIN info ?
Thanks so much for any feedback on this,

#1
I'm a total novice at this, but I think the better place to start (which I discovered after getting to the same exact point you are at "now what") is to create a View of the "node" type. You won't have fine grained control out of the box about how the Amazon products are displayed, but there are several "handlers" to choose from in the dropdowns for the content-type display fields page. My intention, should I be unhappy with those handlers, is to look in the code and find those handlers and then create some more based on those models. I think those custom handlers could then be put in a site custom module without hacking the Amazon module.
As for how you work with views of type "Amazon" --- I'm just as befuddled as you. Clearly there is a lot more data available that way. I think there must be a way list Amazon products without making nodes out of them. But if you are using the Amazon CCK field like I am, and each book is a "node" --> then your view is a view of type node.
#2
How I have done it is to
1)create a content type.
2)Add the ASIN field to the content type.
4)Create Content
5)choose the content type you have created
6)enter the ASIN you want
7)Then configure VIEWS as you've described above to get the fields to display.
The key here is creating that content type and adding the ASIN field to it.
Hope that helps,
Connie
#3
Shai, Connie, thanks for your feedbacks, I will check your inputs.
I was thinking to use Amazon Views in a flexible way similar to Taxonomy Term Views, where, you dont need to create a View for each Term or ASIN for the Amazon case, yet, one view handles all terms with % using the arguments.
One option is to use Taxonomy Term View for Amazon. Instead of ASIN field, by assigning Terms to each Amazon nodes and benefit the features of Taxonom Term View.
I havent worked on this option yet though, seems a possibility.
#4
Subscribe.
#5
Requesting all of your help on the documentation page: http://drupal.org/node/595464. Please add there the things you've learned.
#6
The documentation page at http://drupal.org/node/595464 now contains information about this. In addition, there is now a feature that ships with Amazon (as of 1.0BETA10) that contains an example CCK type and view for you to experiment with.
#7
Automatically closed -- issue fixed for 2 weeks with no activity.