Closed (fixed)
Project:
Amazon Product Advertisement API
Version:
6.x-1.0-beta10
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
2 Nov 2009 at 15:52 UTC
Updated:
28 Nov 2009 at 06:20 UTC
Comments
Comment #1
rfayIf you're using views, why don't you do the relationship approach in the documentation: http://drupal.org/node/595464#views
Then you can just choose an image and use the image that you want to use, and chose how to link it. Much easier than templating.
Comment #2
aharown07 commentedRead the documentation, but something is apparently missing. I create the relationship (though I can't figure out what the logic of that is when I'm listing the nodes in the view anyway... and these nodes have the amazon cck field already... what am I "relating" to what?)
So then I look at the amazon cck field to see if there are any new display options. There aren't. So ... I'm definitely not understanding how the relationship solution works.
Anyway, as I'm using it right now, I can get an image in there of any size I like (by using the filter in a field) but I want to spare users the extra step. Better if they can key the asin into the amazon cck field and be done.
Comment #3
aharown07 commentedOK, I have a workaround for the time being. If you edit amazon-item-book-details.tpl.php and replace smallimage with mediumimage, it does the trick.
But some method that doesn't hack the module would be preferred.
Comment #4
aharown07 commentedTried copying the tpl.php file into my theme directory to see if it would override, but that didn't work (flushed caches, too). Maybe it would have to be named differently or something?
Comment #5
rfaySorry you're having trouble. Have you watched the video on using views with Amazon at http://www.youtube.com/watch?v=xwUQIRcoYRk? (from the documentation page)?
When you copy a tpl.php into your theme, you have to rebuild the theme registry, which on D6 means going to admin/build/modules or the flush on admin_menu will do it for you also. I always start by putting a big "NEW TEMPLATE" or something at the top of the template so I know when it has taken effect.
I just checked and had no trouble using the default view (provided with the example feature) to show any size image alone, with no template mucking.
Comment #6
aharown07 commentedThanks. I don't really want to show the image alone though. I want it to show the book details along w/the medium image. I did a flush when tried the new tpl file... didn't seem to make any difference.
Anyway, I have what I want now. Just have to keep track of the hacks.
I should probably just put in a feature request to add a "medium with full info" option in the field style dropdown. Shd take like ten minutes to add... I'd submit a patch but haven't learned to make those yet (so for me it wd be more than ten mintues)
Comment #7
rfayJust FYI: With views you can choose the details you want to display. You choose what size picture, and any of the other details. For most people it's a better situation that choosing a canned "small with details" or whatever.
Comment #8
aharown07 commentedJust out of curiosity... where do you select which details? Only way I could figure out to do it was to add multiple instances of my amazon field and select the style differently for each... but even then, there was overlap. So I'm missing something.