我在 TS 中做一种分页器......我正在做一个选择,但我需要配置(从 GP:var)开始(设置“开始”页面)值......但我不找到一种方法来做到这一点......
我一直在谷歌中寻找它,每个人都说它是一个 int+calc 对象......但是如果我不能在 calc 中设置一个变量,我就不明白成为一个 int+calc 的想法......
我给你一个我的代码示例
10.select {
pidInList.insertData = 1
pidInList = this
max = 5
begin = 0 #Here is where I would like to configure the begin dynamicaly with stdWrap or something like that
orderBy = pages_smc_news.date DESC
leftjoin = pages_smc_news ON(pages_smc_news.pid = pages.uid) LEFT JOIN tt_content ON (tt_content.pid = pages.uid)
selectFields = pages_smc_news.date, title, bodytext, header,tt_content.pid
where = header="teaser"
andWhere = tt_content.sys_language_uid = 0
}
10.renderObj = COA
10.renderObj {
...
}
...