使用pi_list_BrowserResults()在typo3中浏览页面

使用pi_list_BrowserResults()在typo3中浏览页面,typo3,Typo3,我想设置链接的数量来浏览我的 使用kickstarter创建的扩展。(第1页第2页第3页…) 可以轻松设置最大数量(在本例中为4): 但这将始终向我展示前四个链接,无论是什么时候 我在哪一页。所以,假设我有7个结果页,我已经在第页了 四:我看到“第1页第2页第3页第4页” 有可能改变吗 这是动态的 所以在第4页我看到“第2页第3页第4页第5页” 在第5页我看到“第3页第4页第5页第6页” 等等?检查此链接:。 用户给出了成功实现分页的代码,如: $this->internal['res

我想设置链接的数量来浏览我的 使用kickstarter创建的扩展。(第1页第2页第3页…)

可以轻松设置最大数量(在本例中为4):

但这将始终向我展示前四个链接,无论是什么时候 我在哪一页。所以,假设我有7个结果页,我已经在第页了 四:我看到“第1页第2页第3页第4页”

有可能改变吗 这是动态的

所以在第4页我看到“第2页第3页第4页第5页”

在第5页我看到“第3页第4页第5页第6页” 等等?

检查此链接:。 用户给出了成功实现分页的代码,如:

 $this->internal['results_at_a_time'] = t3lib_utility_Math::forceIntegerInRange($lConf['results_at_a_time'], 0, 1000, 3); // Number of results to show in a listing.
 $this->internal['maxPages'] = t3lib_utility_Math::forceIntegerInRange($lConf['maxPages'], 0, 1000, 2); // The maximum number of "pages" in the browse-box: "Page 1", 'Page 2', etc.

我想你要找的是:

 $this->internal['results_at_a_time'] = t3lib_utility_Math::forceIntegerInRange($lConf['results_at_a_time'], 0, 1000, 3); // Number of results to show in a listing.
 $this->internal['maxPages'] = t3lib_utility_Math::forceIntegerInRange($lConf['maxPages'], 0, 1000, 2); // The maximum number of "pages" in the browse-box: "Page 1", 'Page 2', etc.
$this->internal['pagefloat']
定义如下:

Using $this->internal['pagefloat']: this defines were the current page is shown in the 
list of pages in the Pagebrowser. If this var is an integer it will be interpreted as   
position in the list of pages. If its value is the keyword "center" the current page will 
be shown in the middle of the pagelist.
您可以在函数pi_list_browseresults(类tslib_pibase)的文档标题中找到更多选项和说明:
第425行,

您使用的是哪种类型的typo3版本?我使用的是typo3版本4.5.20