dede文章列表页怎么按权重排列顺序
展开全部
首先需要让“arclist”标签增加权重排序
DEDE里找到以下目录\include\taglib中的arclist.lib.php文件并打开
找到
else if($orderby == 'weight') $ordersql = " order by arc.weight asc";
改为:
else if($orderby == 'weight') $ordersql = " order by arc.weight desc";
打开 \dede\templets\article_add.htm 找到
<td width="122"><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $maxWright['cc'];?>" />(越小越靠前)</td>
改为:
<td width="122"><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $maxWright['cc'];?>" />(越大越靠前)</td>
好了,这样应该就可以了
DEDE里找到以下目录\include\taglib中的arclist.lib.php文件并打开
找到
else if($orderby == 'weight') $ordersql = " order by arc.weight asc";
改为:
else if($orderby == 'weight') $ordersql = " order by arc.weight desc";
打开 \dede\templets\article_add.htm 找到
<td width="122"><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $maxWright['cc'];?>" />(越小越靠前)</td>
改为:
<td width="122"><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $maxWright['cc'];?>" />(越大越靠前)</td>
好了,这样应该就可以了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询