有没有办法让缩略图成为与全尺寸视图不同的图像?

发布于 2024-09-14 03:19:34 字数 144 浏览 2 评论 0原文

我希望缩略图的图像与客户点击时看到的图像不同。

例如:在我的颜色属性中,我想上传颜色样本以及该颜色的产品预览。我确信这是可能的,但我似乎找不到合适的模块或功能。如果必须的话,我会自己创建该模块,但似乎它应该是需求量很大的东西,所以我不明白为什么我找不到东西。

I would like to have a different image for the thumbnail than the what the customer sees when he clicks on it.

For example: In my color attribute I want to upload color samples and a preview of that product in that color. I'm sure this is possible somehow but I can't seem to find the proper module or feature. If I have to I will create the module myself but it seems like it should be something that would be in high demand so I can't figure out why I can't find something.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蘑菇王子 2024-09-21 03:19:34

从 Imagecache 模块(http://drupal.org/project/imagecache)开始,您可以创建将从另一个图像字段导出图像的预设。然后,您可以编写自己的图像缓存插件,该插件可以生成指定颜色的预览。

Start with the Imagecache module (http://drupal.org/project/imagecache), you can create a preset that will derive an image from another image field. You could then write your own image cache plugin that could generate a preview for a specified color.

审判长 2024-09-21 03:19:34

我没有玩过 Ubercart,所以我不确定是否存在我不知道的限制,但您应该能够在内容类型中创建 2 个图像字段。一种称为“预告片图像”,一种可能称为“产品图像”。设置您需要的任何图像缓存预设,并将内容类型配置为在预告片中显示“预告片图像”,但隐藏“产品图像”,对于完整节点视图反之亦然。

I haven't played with Ubercart so I'm not sure if there are limitations of which I'm not aware, but you should be able to create 2 imagefields in your content type. One called something like "teaser image" and one called perhaps "product image". Set up whatever imagecache presets you need and configure your content type to display "teaser image" in the teaser but hide "product image" and vice-versa for the full node view.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文