我有一个名为“member_gallery”的动物园访客字段,它是一个频道图像字段。每当我显示图像时,它都会为每个图像创建 4 个图像。但是我不想为每个输出 4 个图像。我想为每个输出一张图像。这是我写的代码:
{visitor:member_gallery}
{exp:channel_images:images entry_id="{entry_id}"}
<img src="{image:url:large}" alt="{image:title}" />
{/exp:channel_images:images}
{/visitor:member_gallery}
这是它吐出的标记
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(1)__large.jpeg" alt="Images (1)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(1)__large.jpeg" alt="Images (1)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(1)__large.jpeg" alt="Images (1)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(1)__large.jpeg" alt="Images (1)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(2)__large.jpeg" alt="Images (2)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(2)__large.jpeg" alt="Images (2)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(2)__large.jpeg" alt="Images (2)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(2)__large.jpeg" alt="Images (2)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(3)__large.jpeg" alt="Images (3)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(3)__large.jpeg" alt="Images (3)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(3)__large.jpeg" alt="Images (3)" />
<img src="http://staging.eventplanner.verityinteractive.com/images/19/images_(3)__large.jpeg" alt="Images (3)" />
需要明确的是,我不想为每张图片显示 4 张图片。如果你想不通。非常清楚,这是我的问题;我该如何写这个,所以我每上传一张图片,而不是 4 张?谢谢你。对于任何混淆,我深表歉意。