主题 : [@cms_content_page 查询条件如何做判空处理 |
级别: 秀才
![]() |
1# 发表于:2015-06-25 17:17:36 IP:60.55.*.*
|
||||
---|---|---|---|---|---|
级别: 秀才
![]() |
3# 发表于:2015-06-25 17:29:56 IP:60.55.*.*
回复第2楼 不是这个意思。 [@cms_content_page count='10' orderBy='4' channelId=(描述channelId为空的话,就是不作为查询条件,有值得时候,作为查询条件)
|
||
---|---|---|---|
级别: 秀才
![]() |
5# 发表于:2015-06-25 17:35:26 IP:60.55.*.*
回复第4楼 [#if channelId??]
[@cms_content_page count='10' orderBy='4' channelId=channelId] [#else] [@cms_content_page count='10' orderBy='4'] [/#if] 这个意思,这样写会报错的。怎么样写简洁不报错? |
||
---|---|---|---|
级别: 版主
![]() |
6# 发表于:2015-06-25 17:37:19 IP:182.14.*.*
没这种写法,标签里的字段不能判断,因为那是用户根据需求自己填写的,等于是你向后台传值,而不是后台传值到页面上
|
||
---|---|---|---|
1
共1页