What is the difference between these two image fields? field_image vs field_image_cache
Which one is it recommended to use in Product Content Types if you want to display images in catalogue and node view?
Thanks
|
Ubercart |
|
|
|
||
|
Sun, 03/01/2009 - 13:26
What is the difference between these two image fields? field_image vs field_image_cache Which one is it recommended to use in Product Content Types if you want to display images in catalogue and node view? Thanks
Re: field_image vs field_image_cache
If you have Ubercart set up images for you, there will be only *one* CCK field for images listed at admin/content/node-type/product/fields (for D6, or admin/content/type/product/fields for D5 - you didn't mention which version you're using): This is "Label" = Image, "Name" = field_image_cache, "Type" = Image.
Hi
I do have this image
Hi I do have this image field set up as you describe. But have you noticed that it isn't the same image field that you can enable and disable under ? Why is that?
Re: Hi
I do have this image
You said you had two image fields. Ubercart only sets up one. If you manually add a CCK image to your product content type, CCK will insert the HTML to display that image when a product node is viewed. That is not what you want. Ubercart, in the automatic set-up procedure, creates a CCK field to hold the image, but disables the CCK display of that image, which is why you will see the field_image_cache show up as "Hidden" at admin/content/node-type/product/display. The Ubercart product module generates its own HTML to display the product image, so it does not need CCK to handle the display. The menu at admin/store/settings/products/edit controls Ubercart's HTML generation - Ubercart will only emit HTML for those fields which are checked. If you've altered the product field settings and DON'T have "Hidden" selected for field_image_cache at admin/content/node-type/product/display, then CCK will be displaying the image. If you have the Image field enabled at admin/store/settings/products/edit, then Ubercart will *also* be displaying the image. I have no idea how you set up your images initially, or how you set up your product content types, or whether you're working on a fresh install or an upgrade from an alpha or earlier beta version. However, on a fresh install, if you let Ubercart set up images for you, this all works fine. I don't know where your "field_image" comes from, because Ubercart does not create that on a fresh install. If I had to guess I would guess that you've used Drupal and CCK before, and you went ahead and added a CCK field for product images on your own, or converted a node type that already had an image into a product node type, or something of that nature. One of your previous posts said: So if you have imageCache installed you can add 2 kinds of image fields to your product content types: either field_image or field_image_cache. which is one of the reasons why I believe you've been adding image fields on your own. Ubercart sets up ImageCache automatically. If you "add ... image fields to your product content types" then you're the one who's going to have to deal with these additional image fields you created - Ubercart knows nothing about them.
Re: Re: HiI do have this image
Yes I ended up setting up my own product image fields because I couldn't get my images to display in the catalog list view, but I think I understand now thanks. Can you tell me what this option is? Does it affect the view of the image in the catalog view? Home › Administer › Content management › Product > Manage Fields > Image > Global settings > Default list value. And what happens when you change the image path setting in the same page? Will this cause problems?
Re: Re: Re: HiI do have this image
That option is a CCK module option to set some global defaults for CCK Image fields. It's a new setting with D6. I'm not sure how useful a global setting for all content types is, because different content types have different requirements usually. But the Default list value just means whether that type of field shows up as "Hidden" or not when added to a new content type. This default can be overridden on a content type basis, specifically at admin/content/node-type/product/display for the product content type. You can change the image path to be a subdirectory of files. In fact, it's probably a good idea to do that if you have lots of images to manage - putting all the product images in one subdirectory to keep them away from other site images will help you organize things. I would recommend doing this before you create content, though.
Any way to fix it in the DB?
TR, I have quite a few image fields that I think I've set up through cck and NOT through Ubercart. the fields have the same exact names and I've already uploaded a ton of images. Is there any way to let Ubercart know to use that field as the Image field, maybe through some db queries? Everything is working fine on our site since we use views and contemplates and we can choose which image field to output, the only place where the thumbs are not showing is the cart view (and the product view in the admin section.) In other words, where is the link between the imagefield and ubercart? Thanks for your help, --Alex
Re: Any way to fix it in the DB?
There's supposed to be a fieldset in the node type settings to choose which image field to display for products. It looks like the hooks got a little messed up though and no one noticed. Here's a patch to fix it, and it'll be in the next release.
Re: Re: Hi
I do have this image
From the reading I've done so far in this forum, I think I've understand that Ubercart has the ability to display imagecache images through it's default "image" field built into its the product content type it creates on install and this why I should keep the CCK display fields so as to preempt display of double images. But how do you change the way Ubercart uses different image presets and to where it links them to? For example, right now in my site: -Index view uses PRODUCT preset. So I changed dimensions of that preset to 150x150 becasue that's the teaser thumbnail I want. -But then in full product page, it also uses the same PRODUCT preset. So I'm ending up with a thumbnail where I should be having a bigger picture. -Imagecache does create images for preset PRODUCT_LIST but I can't see where they are used. Haven't gotten the cataglog to work yet. Is that where the PRODUCT_LIST preset is used? -Clicking on thumbs in index pages: instead of going to the product's full page (the routine used in most ecommerce sites I know of ), I am presented with with the display of just the image created PRODUCT_FULL preset, which in my case is set to 4000x4000, without the lightbox enabled. -Clicking on the thumb image in the full product page, I'm again presented againwith PRODUCT_FULL image but this time with lightbox enabled. All the above are ordinarily controlled by CCK Display Fields page: admin/content/node-type/product/display What I would like is use PRODUCT_LIST in index pages, linked to full node, PRODUCT preset in full node, PRODUCT_FULL in the lightbox that appears when full node's PRODUCT image clicked.
Re: Re: Re: Hi
I do have this image
From: http://www.ubercart.org/faq/4067 Note that by modifying the other presets, you can also control how images appear in product teasers, on the cart page, in the product list page, etc. Seems to say teaser and full nodes use different presets, but in my case they use the same presets. This is the code from my teaser page; thumb comes from imagecache/product/ folder [/code] And in full node, seems to be identical code. Same PRODUCT image is used (except now lightbox kicks in): [/code] Question: if there is no way to change the above without customizing the code myself, can is it advisable to create my own product content type? I know I can, but what Ubercart features or shortcuts would I lose? Am I going to run into requirements for hardcoding acode customization later on to use Ubercart's other features? thank you for your attention.
Images with cataglog work fine
The issue I mentioned above is not present in Catalog images. It's only when user click on a tag in the node (link to taxonomy) and is presented with the "index view" of the nodes, the top to bottom listing of teasers + thumbs. That's when my ubercart products show up with the PRODUCT image, not PRODUCT_LIST image as teaser image and clicking on the teaser image just produces the PRODUCT_FULL version of the image, instead of taking the user to the full node. Anyway to fix that? I am thinking perhaps better use some kind of redirect module to completely avoid teaser views and redirect taxonomy links in nodes to the catalog. Any help would be appreciated.
product image
I also have this issue; I have configured the image_cache with presets and on the display fields on the product content type I select uc_thumbnail linking to node and for the node I select full image but I still only get a thumbnail on the full node display. What is even worse is that I end up getting 2 images on the full node just because from what I can see its because ubercart puts its image there and image_cache also puts its image there. Now if I remove "image" from the product configuration page in the store configuration then when I view the items in the catalog it wont display the thumbnails, so you can see why I have gone absolutely nuts trying to figure this out and any help to get this fixed would be appreciated. /Chris The issue I mentioned above is not present in Catalog images. It's only when user click on a tag in the node (link to taxonomy) and is presented with the "index view" of the nodes, the top to bottom listing of teasers + thumbs. That's when my ubercart products show up with the PRODUCT image, not PRODUCT_LIST image as teaser image and clicking on the teaser image just produces the PRODUCT_FULL version of the image, instead of taking the user to the full node. Anyway to fix that? I am thinking perhaps better use some kind of redirect module to completely avoid teaser views and redirect taxonomy links in nodes to the catalog. Any help would be appreciated.
cwittusen
same issue here. this seems like a step backwards from UC1. needlessly more complicated. the whole thing would be fine if the product grid could use something other than the product->image setting. has anyone managed to turn off the product->image but still get the grid to show an imagecache preset?
field_image vs field_image_cache
The only way I got around this a little bit was by creating my own field_image on the product page and now when you go into the product it does have a larger image but I still have a smaller image (thumbnail) there as well which is still very annoying.
tested on fresh install
same behavior on a fresh install. i installed ubercart views and tried the uc_products view, but it relies on product->image as well. |
|