cms icon indicating copy to clipboard operation
cms copied to clipboard

请问这个是BUG吗? 还是我写法有问题?

Open Hypo1985 opened this issue 8 years ago • 4 comments

<stl:pageContents scope="Descendant" groupChannel="评论" SourceId="2" pageNum="20" order="AddDate"> -- 这样会查询出 SourceId不等于"2"的内容 </stl:pageContents>

而我在STL在线分析那里这样写 <stl:Contents scope="Descendant" groupChannel="评论" SourceId="2"> -- 就只会查询出 SourceId等于"2"的内容集合 </stl:Contents>

请问,我要实现分页查询 groupChannel="评论" 并且 SourceId="2" 的20条1页的数据,应该怎么写?

Hypo1985 avatar May 30 '18 16:05 Hypo1985

试试where="SourceId='2'"

starlying avatar May 31 '18 02:05 starlying

还是不行。。。 <stl:pageContents scope="Descendant" groupChannel="评论" where="SourceId='2'" pageNum="20" order="AddDate"> 依然查询出所有的了 </stl:pageContents>

Hypo1985 avatar May 31 '18 12:05 Hypo1985

我这样写了,点击进入单页是查询出所有的。 但是再重新刷新一下这个页面,这个才有效。(这个是用的单页模板)

现在是这样的情况。

Hypo1985 avatar May 31 '18 12:05 Hypo1985

单页模板里面如果用pageContents,需要放到stl:dynamic标签里面

starlying avatar Jun 01 '18 02:06 starlying