dede(织梦)专题节点排序方法

首先更改:spec_add.php和spec_edit.php两个文件,约244,145行这样(关键字:“$notelist .=”),分别在

typeid=\\'$typeid\\'

后面添加上

order=\\'$order\\' orderby=\\'$orderby\\'

回到上面点添加获取参数值的变量,找到

$keywords = cn_substrR($keywords, 60);

在后面添加上order和orderby传进来的值并赋给对应的变量,之后打开\include\taglib\channel目录下的specialtopic.lib.php文件

大约61行这样将:

'default'

改为:

$ctag->GetAtt('orderby')

还有62行:

$ctag->GetAtt('att')

后面添加:

$ctag->GetAtt('order')

OK,至此DEDE专题功能小有完善啦!哪一步要不清楚或者遇到问题欢迎一同交流!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章