织梦权重问题相关操作【后台】
- 作者:陈先生
- 发表时间:2019-05-07 17:36
- 来源:未知
织梦后台的文章列表中显示权重和自定义字段的方法:
【显示权重的方法】step1:打开dede/content_list.php,找到208行的:
$query = "SELECT arc.id,arc.typeid,arc.senddate,arc.flag,arc.ismake,
arc.channel,arc.arcrank,arc.click,arc.title,arc.color,arc.litpic,arc.pubdate,arc.mid
FROM `$maintable` arc
$whereSql
ORDER BY $orderbyField DESC";
增加weight字段查询。
step2:打开dede/templets/content_list.htm,搜索:
<td width="6%">ID</td>
增加权重字段
step3:在上述打开文档搜索:
<td nowrap> {dede:field.id/} </td>
增加权重字段:
<td nowrap> {dede:field.weight/} </td>
step4:最后搜索
增加weight字段查询。
step2:打开dede/templets/content_list.htm,搜索:
<td width="6%">ID</td>
增加权重字段
step3:在上述打开文档搜索:
<td nowrap> {dede:field.id/} </td>
增加权重字段:
<td nowrap> {dede:field.weight/} </td>
step4:最后搜索
colspan="10"
,会查找到三个结果,将三个全部替换成colspan="11"