主题 : v8.1版本 文库搜索后标签 [@cms_content_page,如何添加自定义的条件? |
级别: 白丁
![]() |
1# 发表于:2019-09-23 11:53:47 IP:223.199.*.*
|
||||
---|---|---|---|---|---|
级别: 论坛管理员
![]() |
2# 发表于:2019-09-23 11:58:16 IP:117.69.*.*
您好 首先cms_content_page这个是内容的分页标签 您现在指的自定义的条件是自定义什么内容?
|
||
---|---|---|---|
级别: 白丁
![]() |
3# 发表于:2019-09-23 12:28:48 IP:223.199.*.*
我自己在后台 增加了两个字段 按自己增加的字段来搜索
[@cms_model id="9"] [#list tag_bean.items as item] [#if item.field=="repearing"] [#assign repearingAll=item.optValue/] [#elseif item.field=="repearing"] [#assign emAll=item.optValue/] [/#if] [/#list] 增加了 repearing 和repearing 字段 但搜索时 ,显示不出来 |
||
---|---|---|---|
级别: 白丁
![]() |
4# 发表于:2019-09-23 12:41:30 IP:223.199.*.*
回复第2楼,我在后台增加了两个field字段,用自增加的条件来查询,返回的结果不起作用
|
||
---|---|---|---|
级别: 白丁
![]() |
5# 发表于:2019-09-23 12:53:03 IP:223.199.*.*
好用了 ,改成如下, [@cms_content_page count='10' s_repearing='${repearing!}' o_hy='eq' s_typeSeries='${typeSeries!}' o_em='eq' orderBy='4' titLen='110' channelId='328' channelOption='1' dateFormat='yyyy-MM-dd' open='1'] , 即 s_hy=${hy!}改成s_repearing='${repearing!}'就好用了 !
|
||
---|---|---|---|
1
共1页