1

我有一个名为“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 张?谢谢你。对于任何混淆,我深表歉意。

4

2 回答 2

1

您不需要在 Zoo Visitor 中使用频道条目标签...

于 2012-11-21T14:27:11.277 回答
0

看起来好像您在循环中有一个循环,因此是重复的。您是否尝试过删除频道条目标签?

于 2012-11-21T08:49:14.907 回答