Eyoucms列表调用产品模型相册与图集封面及相册

2023-08-03

列表调用产品模型相册

{eyou:channelartlist typeid='211'}
{eyou:arclist typeid="$channelartlist.typeid" limit='0,1'}
{eyou:arcview}
    {eyou:arcview id='field2'}
        {eyou:volist name="$field2.image_list" id='field3'}

            <div class="media media-y text-right">
                <img src='{$field3.image_url}' alt='{$field.title}'/>
                <div class="media-body">
                    <p class="text-middle text-main">"{$field3.intro}</p>
                </div>
            </div>


        {/eyou:volist}
    {/eyou:arcview}
{/eyou:arcview}
{/eyou:arclist}
{/eyou:channelartlist}

列表调用图集封面及相册

{eyou:list pagesize='1' orderby='aid' }
    {eyou:arcview id='field2'}
        <div class="item radius-middle">
            <img src="{$field.litpic}" class="img-responsive" title="{$field.title}"/>
            <a href="{$field.arcurl}"><div class="post-link"></div></a>
        </div>
        {eyou:volist name="$field2.image_list" id='field3'}
        <div class="item radius-middle">
            <img src="{$field3.image_url}" class="img-responsive" title="{$field.title}"/>
            <a class="glightbox" href="{$field3.image_url}"><div class="post-link"></div></a>
        </div>
        {/eyou:volist}
    {/eyou:arcview}
{/eyou:list}


Tag: eyoucms标签