phpcms组图调用

{pc:content action="lists" moreinfo="1" catid="8" num="1" order="id ASC" page="$page"}


{loop $data $r}

<!--组图字段名 tu   stringarray()函数将多字符串转化成数组-->

<?php 
$nimages=string2array($r['tu']);

?>

<!--遍历数组-->

 {loop $nimages $v} 
<li>


<img src="{IMG_PATH}pc/111.jpg" width="350px" height="230px">
<span pageitem="box1477721288" itemtype="text">{$v[alt]}</span>
<div class="atxt" pageitem="box1477712153">
<p></p>
<p>{$v[alt]}</p>


<i></i>
</div>
<!--<em pageitem="box1477721670" itemtype="text">优秀中心</em>-->
</li>
{/loop}
{/loop}
{/pc}

猜你喜欢

转载自blog.csdn.net/qq_39702981/article/details/78941082