非文章模型使用搜索标签调用搜索筛选页面后,再次点击筛选都会跳回文章模型的筛选的修改方法
打开
item/index.asp
找到以下代码,并增加红色的部分即可
'获取字段选项的链接,nocollectkey 不收集的字段,多个用英文逗号隔开
Function GetFieldLink(f,v,nocollectkey)
Dim r,Param,i
Param=""
Dim QPArr,PPArr,Pkey,Pval,QP
QP=Request.QueryString
If Not KS.IsNul(QP) Then
QPArr=Split(Replace(QP,".html",""),",")
For i=0 To Ubound(QPArr)
If instr(QParr(i),"-")<>0 Then
PPArr=Split(QParr(i),"-")
Pkey=trim(PPArr(0))
Pval=PPArr(1)
if KS.FoundInArr(lcase(nocollectkey),lcase(pkey),",")=false Then
If lcase(pkey)<>lcase(f) Then
If Param="" Then
Param=pkey&"-"&Pval
Else
Param=Param & ","&pkey&"-"&Pval
End If
ElseIf lcase(pkey)=lcase(f) Then
If Param="" Then
Param=pkey&"-" & v
Else
Param=Param & ","&pkey&"-"&v
End If
End If
End If
End If
Next
End If
if f<>"" then
if instr(lcase(param),lcase(f)&"-")=0 then
If Param="" Then
Param=f & "-" & v
Else
Param=Param & "," & f & "-" & v
End If
end if
end if
if (instr(lcase(param),"c-")=0) then
If Param="" Then
Param="c-" & channelid
Else
Param=Param & ",c-" & channelid
End If
end if
if isrewrite<>"1" then Param="?" & Param Else Param=KS.Setting(3) & "search/" & Param
GetFieldLink=Param&".html"
End Function