在左右两侧栏目下,
左侧 | 右侧
如栏目ID=3下的文章,分别调用 12篇文章,
那么在需要的栏目下调用文章:
左侧: [e:loop={3,12,0,0,'','newstime DESC'}]
右侧:[e:loop={3,'12,12',0,0,'','newstime DESC'}]
注释:右侧想调取第13篇文章的话,那么右侧的第一个数字应该是12,而不是13
结合应用思考:
是不是可以结合if判断 将这块html进行做判断呢?
if{
[e:loop={3,12,0,0,'','newstime DESC'}]
if{
[e:loop={2,1,0,0,'isgood=1','newstime DESC'}]
}
else{
[e:loop={3,12,0,0,'','newstime DESC'}]
}
}
else{
[e:loop={3,'12,12',0,0,'','newstime DESC'}]
if{
[e:loop={2,1,0,0,'isgood=1','newstime DESC'}]
}
else{
[e:loop={3,'12,12',0,0,'','newstime DESC'}]
}
}
网友评论