Posted by aharown07 on November 2, 2009 at 3:52pm
Jump to:
| Project: | Amazon Module |
| Version: | 6.x-1.0-beta10 |
| Component: | Miscellaneous |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I've got a cck field of the amazon type working but the "small with full info" option isn't the look I'm after. Tried putting mediumimage in a few of the template files to see if I could get that to change, but no luck.
So I'm having trouble figuring out what template produces the "small with full info" display.
If it matters, I'm using the field in a Views table row.
So what's the easiest way to get the "thumbnail" sized image into the "small with full info" display... or make a "medium with full info" display?
Comments
#1
If 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.
#2
Read 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.
#3
OK, 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.
#4
Tried 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?
#5
Sorry 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.
#6
Thanks. 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)
#7
Just 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.
#8
Just 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.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.