迅睿开源框架是一款PHP8高性能·简单易用的PHP开源开发框架, 基于MIT开源许可协议发布,不限制商业使用,以多端互联为设计理念, 支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
业务经理
微信扫描以上二维码
028-61286886
在线咨询
search.html 模块搜索页面 想要获取 当前所在栏目名称 和 所在栏目缩略图 谢谢
{$cat.name} {dr_get_file($cat.thumb)}
{dr_cat_value('news', $t.catid, 'name')} {dr_get_file(dr_cat_value('news', $t.catid, 'thumb'))}
<input type="hidden" name="catid" value="{$catid}">
{dr_get_file($cat.thumb)}
是这样的页面
{$cat.name} {dr_get_file($cat.thumb)}当前记录所在的栏目写法是{dr_cat_value('news', $t.catid, 'name')} {dr_get_file(dr_cat_value('news', $t.catid, 'thumb'))}<input type="hidden" name="catid" value="{$catid}">