Hello,

I'm new to Drupal.
I want to add a product with an image. What I did is create content -> image. There you can select an image and tell it's an product. My problem is that now there are the options original image and image gallery beneath the product. Is there a way to not have these options? Or do I have to add product in another way? At aminister -> bloks, Image gallery isn't enabled.
I can't find a way to fix this. Any help would be appreciated.

Ferid

Comments

kbahey’s picture

I assume by product, you are using ecommerce module for a web shop.

To answer your question, there is no out of the box way to do so at present.

You have two options here:

- Edit the image.module and remove the links you want from the code.

- Use a theme that is based on phptemplate and filter the links in there.

Perhpas Matt, ecommerce author can give more specific (e.g. sample code) answer to the latter option.

On the other hand, since image.module is being rewritten now (see discussion and links here http://drupal.org/node/18125), I asked walkah (the author) to allow for supressing the links.

From a wider view, there is talk in the development community on providing a way to override links in any module. For example see this issue http://drupal.org/node/13211 and this as well http://drupal.org/node/636. Nothing concrete yet, but please voice your support, or contribute code, or help in any way you can.
--

Consulting: 2bits.com
Personal: Baheyeldin.com

--
Drupal performance tuning and optimization, hosting, development, and consulting: 2bits.com, Inc. and Twitter at: @2bits
Personal blog: Ba

ferid’s picture

Thank you for your reply,
I now have installed the img_assist. That way I can add an image to a product without getting the image gallery links. Only downside is that I first have to add a image with the image module, then I don't publish the image, then I can use that image for a product.
I don't know (yet) if there is a better sollution for adding image to drupal that img_assist can use.