联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
模板标签里面如何调用顶级列表页文章所属栏目标签?
类型:迅睿CMS 更新时间:2020-10-11 00:21:26

模板标签里面

如何调用顶级列表页文章所属栏目标签?

模板是index.html,category.html模板文件,这是测试过的标签,都不行,

{$t.name}{$mycat['dirname']}{$cat.name}{$t.name}{$t['dirname']} {$cat['dirname']}{dr_cat_value('kecheng', $catid, 'name')}{$c.name}


{xunruicms_img_title}

{xunruicms_img_title}



{module catid=$catid order=updatetime}

<div class="item_wrap item-{$key+1}"><div class="item item-normal"><div class="item-thumb"><a class="item-href" href="1212301510.html" target="_blank"><i class="thumb " style="background-image:url({dr_thumb($t.thumb)})"></i></a></div>

<div class="item-main"><h2><a href="{$t.url}" target="_blank">{$t.title}</a></h2><h4>

<!--会员-->

{php $user=dr_member_info($t['uid']);}

<span class="author">

<a href="xunlianying.html#publish" target="_blank">

<i class="thumb avatar" style="background-image:url({dr_avatar($t['uid'])})"></i>{$user.username}</a>      

</span>

<span class="term"> <a href="photoshop.html" target="_blank">{$t.name}{$mycat['dirname']}{$cat.name}{$t.name}{$t['dirname']} {$cat['dirname']}{dr_cat_value('kecheng', $catid, 'name')}{$c.name}PS教程</a> <em class="views"> <i class="icon-see"></i> 3188 </em> </span></h4></div></div></div>

{/module}


回帖
  • 努力赚钱买
    #1楼    努力赚钱买
    2020-10-10 23:53:57
    Chrome 0
    有没有大佬帮帮忙
    满意答案
  • 努力赚钱买
    #2楼    努力赚钱买
    2020-10-11 00:21:26
    Chrome 0
    @努力赚钱买:解决了,附上代码 {php $mycat=dr_cat_value('模块字段', $t.catid);} {$mycat['url']} {$mycat['name']}