电话
13363039260
云优cms一级栏目页循环调二级栏目页的封面图
1 2 3 4 5 6 7 8 | < yunu:catlist cid = "$category['id']" type = "son" > < li > < a href = "{$catlist.url}" > < div >{$catlist.pic}</ div > < p >{$catlist.title}</ p > </ a > </ li > </ yunu:catlist > |
云优cms指定产品父级栏目循环子级栏目产品,如果要指定ID,改第一行的cid就可以了。
1 2 3 4 5 6 | < yunu:catlist cid = "$category['id']" limit = "20" type = "parent" orderby = "sort desc" > < a href = "{$catlist.url}" >{$catlist.title}</ a > < yunu:list cid = "$catlist['id']" limit = "4" > < li >< a href = "{$list.url}" title = "{$list.title}" >{$list.title}</ a > </ li > </ yunu:list > </ yunu:catlist > |
1 2 3 4 5 6 7 8 9 10 11 12 13 | < yunu:catlist cid = "$category['id']" type = "parent" limit = "200" > < h3 >< a href = "{$catlist.url}" >{$catlist.title}</ a ></ h3 > < ul > < volist name = "catlist['child']" id = "v" > < li >< a href = "{$v.url}" >{$v.title}</ a ></ li > </ volist > </ ul > < ul > < yunu:list cid = "$catlist['id']" orderby = "sort desc" limit = "5" > < li >< a href = "{$list.url}" >< span >{$list.create_time|date='Y-m-d',###}</ span >{$list.title}</ a ></ li > </ yunu:list > </ ul > </ yunu:catlist > |