虚位以待(AD)
虚位以待(AD)
首页 > CMS教程 > phpcms > PHPCMS教程:tag标签页调用缩略图的方法

PHPCMS教程:tag标签页调用缩略图的方法
类别:phpcms   作者:码皇   来源:互联网   点击:

PHPCMS v9 tag标签页调用缩略图的修改方法: 打开 phpcmsmodulescontenttag php 文件 找到 $res = $this-db-get_one(array( id =$contentid), title, description, url, inputtime, style ); 修改为 $res = $th ,魔客吧
PHPCMS v9 tag标签页调用缩略图的修改方法:
打开 phpcmsmodulescontenttag.php 文件
找到
$res = $this->db->get_one(array('id'=>$contentid), 'title, description, url, inputtime, style');
修改为
$res = $this->db->get_one(array('id'=>$contentid), 'title, thumb, description, url, inputtime, style');
PHPCMS v9 tag标签页调用缩略图的调用方法:
{loop $datas $r}
<li>
  <a href="{$r[url]}"><img src="
{thumb($r[thumb], 100, 100)}" /></a>
</li>
{/loop}
相关热词搜索: PHPCMS教程:tag标签页调用缩略图的方法