如何在同一类型的所有节点中显示许多图像(按图像字段)?
问题是我有数百个节点,每个节点都有 4 到 12 个图像,所有这些图像在图像字段中的大小都相同,但我想对其进行排序,以便它看起来在网格或类似的东西的末尾。
我知道面板和视图就是答案,但我想我已经看过所有可用的教程,但什么也没有。
如果有人知道我在哪里可以找到我需要的东西,我将非常感激。
The thing is that I have hundreds of nodes each with 4 to 12 images all of them around the same size in an imagefield but I want to order that so it looks at the end in a grid or something like that.
I know that panels and views are the answer but I think I've seen all of the tutorials available but nothing.
If anyone know where can I find something like I need, I'll be very gratefull.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
视图就是您想要的。那里有很多不错的截屏视频和教程,但您可能找不到您正在寻找的内容,因为 Views + CCK 是一种超级灵活的瑞士军刀工具。
您需要使用图像创建此节点类型的视图,将视图从节点更改为字段,将显示设置为网格,然后添加图像字段作为字段。瞧。
Views is what you want. There are lots of good screencasts and tutorials out there, but you might not find one on exactly what you're looking for, because Views + CCK are uber flexible swiss army knife kinda tools.
You'll want to create a view of this node type with the images, change the view from nodes to fields, set the display to grid, and then add the imagefield as the field. Voila.