从图像缓存预设创建新的 CCK 字段?
我有一个图像库,我已为其配置了图像缓存预设。这是我第一次使用 Imagecache,所以我不确定我是否正确使用它。
现在,我发现我只能配置 CCK 图像字段以在该字段的预览或完整节点版本中显示图像缓存生成的图像。
我希望有一个新的 CCK 字段,其中包含 imagecache 生成的图片。这可能吗?有这个模块吗?
如果不是,如何自定义图库视图以显示图像的预览版本,而不是当前显示的完整节点版本?
I have an image gallery for which I have configured an Imagecache preset. It's my first time using Imagecache so I am not sure if I am using it right.
Right now, I see that I can only configure the CCK imagefield to show me the imagecache generated image in either the preview or the full node version of the field.
I would prefer to have a new CCK field with the imagecache generated picture. Is this possible? Is there a module for this?
If it isnt, how can I customize my gallery view to show me the preview version of the image, instead of the full node version, which it is currently showing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您已经定义了一个名为
preview
的图像缓存预设,您可以创建gallery_image
节点类型的视图显示,该节点类型使用字段而不是节点视图,并选择字段content_name_of_your_image_field
并将该字段的显示设置为预览
。如果您想将其变成图库,您可以将此字段链接到其节点,然后从左侧菜单中选择网格视图样式。我猜您可能已经完成了这些说明的一半(除非您使用可怕的图像库模块来创建图像库)。
Assuming you have defined an imagecache preset called
preview
, you can create a view display of yourgallery_image
node type that uses fields rather than node view and selects the fieldcontent_name_of_your_image_field
and set the display of this field topreview
. If you want to turn this into a gallery, you can link this field to its node, and choose the Grid view style from the menu on the left.I am guessing that you are probably about half way through these instructions already (unless you are using a horrid image gallery module to create your image gallery).