[英]Typo3 RealUrl: add term to pagination url
I wrote a press release plugin listing several releases using the paginate widget. 我写了一个新闻发布插件,使用分页小部件列出了多个版本。 Using RealUrl the URL of the listing site looks like this: www.mysite.com/press/2/
使用RealUrl,列表网站的URL如下所示:www.mysite.com/press/2/
Is it possible to add another term to the page parameter? 是否可以在page参数中添加另一个术语? So it looks like this: www.mysite.com/press/page-2/
看起来像这样:www.mysite.com/press/page-2/
I would also need this for two languages. 我也需要两种语言。
This is part of my RealUrl configuration: 这是我的RealUrl配置的一部分:
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'fixedPostVars' => array(
'127' => array( // Press release overview
array(
'GETvar' => 'tx_press_releaselist[@widget_0][currentPage]',
)
),
)
);
A possible solution would be to use a valueMap
. 一种可能的解决方案是使用
valueMap
。 Only downside would be that you would provide every value. 唯一的缺点是您将提供所有价值。 So if you expect 100 pages, you need to add those 100 numbers to the realurl configuration.
因此,如果期望100页,则需要将这100个数字添加到realurl配置中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.