Active
Project:
Amazon Product Advertisement API
Version:
6.x-1.2
Component:
Miscellaneous
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jan 2011 at 23:54 UTC
Updated:
16 Jan 2011 at 17:26 UTC
For the frontpage of my website I'm trying to create view of nodes showing the node title and amazon cover image. Ideally I only want nodes to be displayed if there is a cover image to display pulled from amazon based on an ASIN field.
Within views-> filters you can select "Amazon: Product image An image of the Amazon product."
On selecting this the message is returned "Error: handler for amazon_item_image > product_image doesn't exist!"
Is it possible to create a handler so that I can filter my results based on the existance of a cover on Amazon ? or is product image not supposed to be available in filters ?
Comments
Comment #1
rfayI can't imagine how there should be a filter for "Amazon: Product Image". Sounds like a mistake.
For general views usage, could you please check http://drupal.org/node/595464, which has complete information on how to do views using specific amazon details. If you're already familiar with that and using that approach, please report back.
I'm not sure how you would filter by the *existence* of a product image.
Comment #2
f16viper commentedYes, I am familiar with using views in the way descibed on that page - need the relationship setup to access this missing handler - otherwise it works great!!
Re reading my initial post perhaps I was not clear with what I am doing..
On the frontpage of my site http://www.theaviationindex.com there are two views at the top - "Recent book activity" and "Recently Tagged". Primarily its for this frontpage that i'm worrying about , but its best illustrated in the http://www.theaviationindex.com/bookactivity display. Notice that there is no image against some titles (i.e. there is no cover on amazon) - Ideally I would filter these out
Essentially on these views if there this a cover attached (via a cck filefield) to the node (or to its parent in the case of magazine articles) it is shown, else if an amazon ASIN is present in an amazon CCK field attempt show that image (which isnt always there), else if neither of these show nothing
(I am using the ViewsOr module to allow OR functionality in views filters)
In filefield's view filters you can filter on a " - list" field (in my case Cover (field_cover) - list) to filter out nodes without covers attached - this is set to 1 if a cover is attached via cck and can be displayed (The intention of this field is so that users can hide the files from being displayed in a node - it can manually be set to 0 by the user if required)
I'll do some research into views handlers to see if its possible to do this via the current setup, but it may require a seperate flag which may not be so appealing. Its not a big deal for me, it just looks a little messy :-)
Thanks for the reply, this is a fantasic module
Comment #3
rfay