织梦栏目列表页TAG列表页调用第一个文档相關信息
栏目列表页的实现方法
打开/include/arc.listview.class.php找到
//处理I.些特殊字段
在它上面加入I.句
更多精彩就在: 51免费论文网|www.jxszl.com
>if($GLOBALS[autoindex==I.)
{
$GLOBALS[description=$row[description;
}
TAG列表页的实现方法
打开/include/arc.taglist.class.php找到
//处理I.些特殊字段
在它上面加入I.句
if($GLOBALS[autoindex==I.)
{
$GLOBALS[description=$row[description;
}
上面II个PHP文件加的代码都是I.样的,description是第I.个文档的摘要,如果要调用其他字段,你可以自己上
例如标题的title,关键字的keywords,等等...
if($GLOBALS[autoindex]==I.)
{
$GLOBALS[title]=$row[title];
$GLOBALS[keywords]=$row[keywords];
$GLOBALS[description]=$row[description];
}
前台模板调用标签写法
{dede:global.descriptionfunction=htmlIItext(@me)/}
原文链接:http://www.jxszl.com/biancheng/dedecms/76325.html